From 87efb7a01ed45f45237c984a50f6877c2db99e47 Mon Sep 17 00:00:00 2001 From: xing Date: Mon, 22 Jun 2020 11:37:05 +0800 Subject: [PATCH] =?UTF-8?q?=E7=94=A8=E6=88=B7=E6=9D=83=E9=99=90=E5=88=97?= =?UTF-8?q?=E8=A1=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/access/access.vue | 50 ++++++++++++++++++++++++++++++++ src/router/router.js | 4 ++- 2 files changed, 53 insertions(+), 1 deletion(-) create mode 100644 src/components/access/access.vue diff --git a/src/components/access/access.vue b/src/components/access/access.vue new file mode 100644 index 0000000..10a70d9 --- /dev/null +++ b/src/components/access/access.vue @@ -0,0 +1,50 @@ + + + + diff --git a/src/router/router.js b/src/router/router.js index 27bcbcc..8cf8cd9 100644 --- a/src/router/router.js +++ b/src/router/router.js @@ -4,6 +4,7 @@ import Login from '../components/Login' import Home from '../components/Home' import welcome from '../components/welcome' import users from '../components/users/users' +import access from '../components/access/access' Vue.use(VueRouter) @@ -16,7 +17,8 @@ const routes = [ redirect: '/welcome', children: [ { path: '/welcome', component: welcome }, - { path: '/users', component: users } + { path: '/users', component: users }, + { path: '/rights', component: access } ] } ]