Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
2.3k views
in Technique[技术] by (71.8m points)

vue 路由管理还有更合理高效的方法吗?

目前vue项目中路由使用 vue-router,随着项目越来越复杂,感觉路由全部写在了 routers.js文件中已经不太适合管理,所以想请教下还有更合理有效的路由管理方式吗(基于vue-router)?


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

每个模块分别写route.js配置 最后在routers.js concat/push 合并


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...