one.ts
export const one = () => {
console.log('8888')
}
import { one } from './文件夹位置'
export default {
setup () {
const three = () => {
two()
}
return { three }
}
}
const two = () => {
one()
}
具体参照https://www.icode9.com/content-4-1111534.html