music-website
music-website copied to clipboard
项目运行前后端页面时出现一些问题
在运行时报Property '$route' and '$router' does not exist on type 'ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string, {}, {}, {}, string, ComponentProvideOptions>, ... 4 more ..., any>' 错误 怎么解决呢?
同问
用useRoute()来替换项目中的proxy.$route就可以了
用useRoute()来替换项目中的proxy.$route就可以了
能跑起来,但是进页面跳转还是报错的