处理无法在 web 和 alarm间切换(在 Alarm 下面操作一会再点击 WEB 之后无法跳转)的问题
This commit is contained in:
parent
714e965ebd
commit
f5cf593f9d
|
@ -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"}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user