vue-cli3.0 +TypeScript 类型“VueRouter”上不存在属性“options”
資深大佬 : zzzccc0812 26
大家好, 我在写 VUE+TS 的时候遇到了一个问题 请求大佬
Element implicitly has an 'any' type because expression of type '"options"' can't be used to index type 'VueRouter'. 类型“VueRouter”上不存在属性“options” // 在写 router 的时候用到了 options 但是会提示错误 本人目前只找到了一种解决方法就是去 Node_modules 里面去修改 请问大佬们 有没有其他更好的解决办法 this.$router["options"].routes
大佬有話說 (2)