处理无法在 web 和 alarm间切换(在 Alarm 下面操作一会再点击 WEB 之后无法跳转)的问题

This commit is contained in:
renpy 2023-08-29 11:39:57 +08:00
parent 714e965ebd
commit f5cf593f9d

View File

@ -108,7 +108,7 @@ export default {
// this.initDefaultKeys(this.menus[0]) // this.initDefaultKeys(this.menus[0])
// openKeys // openKeys
const openKeys = window.sessionStorage.getItem('openKeys') const openKeys = window.sessionStorage.getItem('openKeys')
const selectedKeys = window.sessionStorage.getItem('currMenu') const selectedKeys = window.sessionStorage.getItem('currMenu_web')
if (selectedKeys) { if (selectedKeys) {
this.currSlecteKey=[] this.currSlecteKey=[]
// this.defaultSelectedKeys.push(selectedKeys) // this.defaultSelectedKeys.push(selectedKeys)
@ -138,7 +138,7 @@ export default {
menuClick({ item, key, keyPath }) { menuClick({ item, key, keyPath }) {
this.currSlecteKey = [] this.currSlecteKey = []
this.currSlecteKey.push(key) this.currSlecteKey.push(key)
window.sessionStorage.setItem('currMenu', key) window.sessionStorage.setItem('currMenu_web', key)
// var parentPath = item._props.parentMenu._props.eventKey; // var parentPath = item._props.parentMenu._props.eventKey;
// var parentTitle = parentPath.substring(parentPath.lastIndexOf("/") + 1, parentPath.length) // var parentTitle = parentPath.substring(parentPath.lastIndexOf("/") + 1, parentPath.length)
// var par = {"type": "q"} // var par = {"type": "q"}