export default {
data() {
return {
isLoading: false
};
},
methods: {
async showMore(parentId) {
if (this.isLoading) return;
this.isLoading = true;
await this.someAction({ parentId });
this.isLoading = false;
}
}
}
此代码显示错误:类型上不存在属性“”isLoading“”
发布于 2021-03-02 07:32:58
需要使用defineComponent
包装器
export default defineComponent({
...
});
https://stackoverflow.com/questions/66435072
复制相似问题