Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

项目运行前后端页面时出现一些问题 #307

Open
QHDLY opened this issue Sep 17, 2024 · 3 comments
Open

项目运行前后端页面时出现一些问题 #307

QHDLY opened this issue Sep 17, 2024 · 3 comments

Comments

@QHDLY
Copy link

QHDLY commented Sep 17, 2024

在运行时报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>' 错误 怎么解决呢?

@YueFengChu
Copy link

同问

@wzh-devin
Copy link

用useRoute()来替换项目中的proxy.$route就可以了

@dragon-Ms
Copy link

用useRoute()来替换项目中的proxy.$route就可以了

能跑起来,但是进页面跳转还是报错的

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants