ref()未被定义怎么解决
来源:6-3 电子书表格展示

慕粉3868778
2022-04-26
const param = ref();以后显示
ref is not defined编译失败
我尝试
"globals":{
“ref”: true,
“loading”: true,
}依旧无法正常运行,前端基础有点弱麻烦老师了
写回答
1回答
-
甲蛙
2022-04-26
检查在vue页面的script那块,有没有import,比如:
import { defineComponent, onMounted, ref } from 'vue';
00
相似问题