动态路由大体实现

This commit is contained in:
pixelqm
2019-09-14 22:30:04 +08:00
parent 6738d0eb1a
commit a0fab80d28
10 changed files with 298 additions and 72 deletions
+2 -7
View File
@@ -20,15 +20,10 @@ const baseRouters = [{
import ('@/view/login/regist.vue')
},
{
path: "/error",
name: "error",
path: "/404",
name: "404",
component: () =>
import ('@/view/error/index.vue')
},
{
path: '*',
redirect: '/error'
}
]