mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/learning-system-portal.git
synced 2025-12-09 02:46:44 +08:00
前端白名单控制
This commit is contained in:
@@ -6,6 +6,7 @@ import 'nprogress/nprogress.css'
|
||||
import { getToken } from '@/utils/token'
|
||||
import { routers } from "@/data/pages"
|
||||
import watermark from './utils/warterMark.js'
|
||||
import testUser from './utils/testUsers.js'
|
||||
import xpage from '@/utils/xpage'
|
||||
|
||||
NProgress.configure({ showSpinner: false })
|
||||
@@ -37,6 +38,8 @@ router.beforeEach((to, from, next) => {
|
||||
if (!store.getters.init) {
|
||||
// 判断当前控制台是否已拉取完数据
|
||||
store.dispatch('InitData').then(res => {
|
||||
//加载白名单信息
|
||||
testUser.init();
|
||||
//加载信息资源归属,系统分类信息
|
||||
store.dispatch('resOwner/loadResOwners');
|
||||
store.dispatch('sysType/loadSysTypes');
|
||||
|
||||
Reference in New Issue
Block a user