update
This commit is contained in:
@@ -224,4 +224,11 @@ next 进行管道中的下一个钩子
|
||||
|
||||
2.路由独享的 导航守卫
|
||||
|
||||
在main.js中的 router
|
||||
在main.js中的 routes 路由定义:
|
||||
const routes= [
|
||||
{ path: "/a", component: aa },
|
||||
{ path: "/b", component: bb },
|
||||
|
||||
]
|
||||
|
||||
把 { path: "/a", component: aa },改成:
|
||||
|
||||
Reference in New Issue
Block a user