Commit c9d891bd by 张晓玮

Merge branch 'zxw-1.8.0' into 'v1.8.0'

打开新窗口逻辑判断修改

See merge request !23
2 parents 5a3a94c9 37d8ff25
...@@ -21,7 +21,14 @@ export default { ...@@ -21,7 +21,14 @@ export default {
// vBreadcrumb // vBreadcrumb
}, },
created() { created() {
if(window.opener) this.isNewWindowOpenPage = true // 新窗口打开页面 菜单栏直接进入地图页面不隐藏菜单
let hiddenMenu = JSON.parse(localStorage.getItem('hiddenMenu'))
let locationHash = window.location.hash
let flag = true
hiddenMenu.map(val => {
if (locationHash.indexOf(val) > -1 && window.location.hash.indexOf('?') > -1) flag = false
})
if (!flag) this.isNewWindowOpenPage = true
} }
}; };
</script> </script>
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!