diff --git a/src/permission.js b/src/permission.js index 0b6b2ca..ed53ecb 100644 --- a/src/permission.js +++ b/src/permission.js @@ -8,7 +8,10 @@ import getPageTitle from '@/utils/get-page-title' NProgress.configure({ showSpinner: false }) // NProgress Configuration -const whiteList = ['/menu','/login', '/auth-redirect','/kban','/sliao','/pwpg','/pwfk','/llpg','/llfk','/hxpg','/hxfk','/qgpg','/qgfk','/ljian','baogong'] // no redirect whitelist +const whiteList = ['/menu','/login', '/auth-redirect','/kban','/sliao','/pwpg','/pwfk','/llpg','/llfk','/hxpg','/hxfk','/qgpg','/qgfk','/ljian','/baogong'] // no redirect whitelist +// const whiteList = ['/menu','/login', '/auth-redirect','/kban','/ljian','/baogong'] +const checkBmList=['/sliao','/pwpg','/pwfk','/llpg','/llfk','/hxpg','/hxfk','/qgpg','/qgfk'] + export function flatRoutes(routes) { let ret = []; routes.forEach(it => { @@ -44,6 +47,13 @@ router.beforeEach(async(to, from, next) => { } else { // determine whether the user has obtained his permission roles through getInfo + // if (checkBmList.includes(to.path)) { + // if (to.query.zyq!==store.getters.bmbm){ + // next({ path: '/' }) + // return + // } + // } + const hasRoles = store.getters.roles && store.getters.roles.length > 0 if (hasRoles) { next() diff --git a/src/views/dashboard/components/Zyjh/index.vue b/src/views/dashboard/components/Zyjh/index.vue new file mode 100644 index 0000000..febf190 --- /dev/null +++ b/src/views/dashboard/components/Zyjh/index.vue @@ -0,0 +1,50 @@ + + + diff --git a/src/views/dashboard/index.vue b/src/views/dashboard/index.vue index 5371005..9a132a4 100644 --- a/src/views/dashboard/index.vue +++ b/src/views/dashboard/index.vue @@ -1,5 +1,6 @@