Merge branch 'fix_foton_20231213' into 'master'
Fix foton 20231213 See merge request laws-foton-slrs/foton-laws-system-front!139
This commit is contained in:
File diff suppressed because it is too large
Load Diff
+3
-3
@@ -5111,7 +5111,7 @@ const router = new Router({
|
||||
* @date: 2019/04/10 19:48:00
|
||||
*/
|
||||
function hasRouterPermission (menuId) {
|
||||
let menuList = store.getters.getMenuList || []
|
||||
const menuList = store.getters.getMenuList || []
|
||||
let has = false
|
||||
menuList.map((menu) => {
|
||||
if (menu.id === menuId) {
|
||||
@@ -5128,9 +5128,9 @@ function hasRouterPermission (menuId) {
|
||||
*/
|
||||
function getRedirectPath (menuId) {
|
||||
// 全部菜单
|
||||
let menuList = store.getters.getMenuList || []
|
||||
const menuList = store.getters.getMenuList || []
|
||||
// 用当前菜单的Id去匹配,然后找到全部子路由
|
||||
let childMenuList = []
|
||||
const childMenuList = []
|
||||
menuList.map((menu) => {
|
||||
if (menu.parentId === menuId) {
|
||||
return childMenuList.push(menu)
|
||||
|
||||
Reference in New Issue
Block a user