index.vue
import { jsmethod } from 'test.js'
methods: {
qwe(){},
asd(){
jsmethod(this.qwe)
}
}
test.js
export function jsmethod(qwe){
if (qwe) {
qwe();
}
}
index.vue
import { jsmethod } from 'test.js'
methods: {
qwe(){},
asd(){
jsmethod(this.qwe)
}
}
test.js
export function jsmethod(qwe){
if (qwe) {
qwe();
}
}