Vue3+TypeScript template中使用$store报错

问题描述:
Vue3 + TypeScript 中在template会报找不到"$store"的警告
Vue3+TypeScript template中使用$store报错_第1张图片
我使用的解决方法:
src/shims-vue.d.ts 文件中加入 declare let $store: any
Vue3+TypeScript template中使用$store报错_第2张图片

Stack Overflow:
Stack Overflow 中类似问题的文章

你可能感兴趣的:(前端,H5,typescript,Vue3)