This commit is contained in:
@jyuhsin
2025-11-17 13:52:24 +08:00
parent 6c49e3f695
commit 49769b7d4f
3 changed files with 13 additions and 5 deletions
@@ -348,7 +348,6 @@ layout("/layouts/v4/baseLayout.html"){
// 菜单回显
echoMenus() {
try {
debugger
const app = JSON.parse(window.sessionStorage.getItem("zhgh_sub_app"))
this.activeMenuIndex = window.sessionStorage.getItem("zhgh_sub_app_left_menu_active_index-" + app.id)
this.openedMenus = JSON.parse(window.sessionStorage.getItem("zhgh_sub_app_left_menu_opens-" + app.id)) || []
@@ -387,7 +386,6 @@ layout("/layouts/v4/baseLayout.html"){
}
const result = findMenuPath(this.menus, getBaseSubAppPath())
debugger
if(result){
this.activeMenuIndex = result[result.length-1]['id']
this.openedMenus = result.map(v=>v.id)