export const total = {
methods: {
test1() {
console.log(112)
}
},
mounted() {
this.test1()
}
}
最近正在学ts,发现vue3的minin,使用this的时候会报错如下图
请问该如何解决呢?
export const total = {
methods: {
test1() {
console.log(112)
}
},
mounted() {
this.test1()
}
}
最近正在学ts,发现vue3的minin,使用this的时候会报错如下图