prod
lily.zhang 4 years ago
parent 4aa10c56ae
commit f2ba60ab4d

@ -1,7 +1,7 @@
/* /*
* @Author: your name * @Author: your name
* @Date: 2021-10-08 09:26:42 * @Date: 2021-10-08 09:26:42
* @LastEditTime: 2021-11-16 10:47:13 * @LastEditTime: 2021-11-17 14:05:49
* @LastEditors: Please set LastEditors * @LastEditors: Please set LastEditors
* @Description: In User Settings Edit * @Description: In User Settings Edit
* @FilePath: /data-show/src/permission.js * @FilePath: /data-show/src/permission.js
@ -30,7 +30,7 @@ router.afterEach(() => {
// 检查菜单权限 // 检查菜单权限
function checkMenu(path, next) { function checkMenu(path, next) {
let menuStr = store.getters.getMenu || []; let menuStr = store.getters.getMenu || [];
let arr = ['/index', '/modelInsight', '/eventInsight', '/marketingAnalysis']; let arr = ['/modelInsight', '/eventInsight', '/marketingAnalysis'];
let n = menuStr.findIndex(ele => ele.link === path); let n = menuStr.findIndex(ele => ele.link === path);
if(arr.includes(path) && n === -1) next('/index') if(arr.includes(path) && n === -1) next('/index')
else next() else next()

Loading…
Cancel
Save