美文网首页
vue3.0+ts $store抛出错误 property '$

vue3.0+ts $store抛出错误 property '$

作者: 摩登开发者Oliver | 来源:发表于2020-09-23 15:07 被阅读0次
未找到store

然后在网上找了很多资料也没有发现什么原因,在属性上打印出来也是有的,$router都可以使用,


属性上是有的

只能想了个临时解决办法,重新声明一下$store为any类型

    $store: any
image.png

对ts理解还太少了很多bug还无法找到好的方法

相关文章

网友评论

      本文标题:vue3.0+ts $store抛出错误 property '$

      本文链接:https://www.haomeiwen.com/subject/pghoyktx.html