Commit f54e4ebc by 张杰

Merge branch 'zxw-1.7.0' into 'v1.7.0'

新窗口打开不显示菜单栏

See merge request !8
2 parents e70695c2 bf83292f
......@@ -47,12 +47,12 @@ export default {
return store.getters.showLoading;
})
// 判断页面是否通过window.open 打开(v1.7.0版本地图页面操作是打开新窗口 将菜单栏隐藏)
// if (window.opener) {
// const store = useStore()
// store.state.collapsed = true
// store.dispatch('app/setCollapsed', true)
// actions.setGlobalState({ isCollapsed: true })
// }
if (window.opener) {
const store = useStore()
store.state.collapsed = true
store.dispatch('app/setCollapsed', true)
actions.setGlobalState({ isCollapsed: true })
}
return {
hasToken,
showLoading
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!