diff --git a/src/permission.js b/src/permission.js index 752e800..b9d8bf0 100644 --- a/src/permission.js +++ b/src/permission.js @@ -1,7 +1,7 @@ /* * @Author: your name * @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 * @Description: In User Settings Edit * @FilePath: /data-show/src/permission.js @@ -30,7 +30,7 @@ router.afterEach(() => { // 检查菜单权限 function checkMenu(path, next) { let menuStr = store.getters.getMenu || []; - let arr = ['/index', '/modelInsight', '/eventInsight', '/marketingAnalysis']; + let arr = ['/modelInsight', '/eventInsight', '/marketingAnalysis']; let n = menuStr.findIndex(ele => ele.link === path); if(arr.includes(path) && n === -1) next('/index') else next()