如何解决vue-router中进行build无法正常显示路由页面方面的问题(详细教程)【点击查看详情】
使用vue cli创建一个webpack工程。加入vue-router然后使用路由引入一个新的组件。这时路由和链接是这样写的。const router = new VueRouter({ mode: 'history'.base: __dirname.routes: [ { path: '/first'.component: firstCom } ]})。<a href="/first"rel="external nofollow">Try this。</a>。1、npm run dev查看没有问题。2、npm run build打包。
相关视频/文章