This repository has been archived by the owner on Mar 10, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 139
请问如果每个模块都引入路由的话,应该如何设置? #2
Comments
对的,多路由之间是不能跳转的 |
你可以根据不同的模块,设置对应模块的路由 |
const router = new VueRouter({ 你好,我现在遇到一个问题,想请教一下,这个是一个 demo |
请问,这个怎么在本地测试呢,我运行dev 以后,访问8080 貌似只有一个Cannot GET / |
为什么每个页面都会载入所有的静态资源啊。比如我有两个页面:index.html和login.html。生成后发现两个页面都是<script type="text/javascript" src="/module/login.js"></script><script type="text/javascript" src="/module/index.js"></script> |
@windyao ,载入静态资源这个问题需要在webkpack中设置一下,在当初写demo的时候没有注意到这个问题 |
@yaoyao1987 , 载入静态资源这个问题怎么设置?多谢! |
同问静态资源问题...@yaoyao1987 |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
我捣鼓了一段时间,发现貌似多路由之间不能跳转
The text was updated successfully, but these errors were encountered: