import {getCurrentInstance} from 'vue';
const instance = getCurrentInstance();
instance.proxy.$forceUpdate();
用于解决VUE3项目请求完数据页面视图不更新,实测有用 记录一下
展开
4