Commit bcbffc31 by 张晓玮

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

新窗口打开 菜单header隐藏判断修改

See merge request !15
2 parents 23ab8dbc 6bd625e2
...@@ -53,7 +53,8 @@ export default { ...@@ -53,7 +53,8 @@ export default {
Common.noHiddenMenu.map(val => { Common.noHiddenMenu.map(val => {
if (window.location.hash.indexOf(val) > -1) flag = false if (window.location.hash.indexOf(val) > -1) flag = false
}) })
if (flag) { console.log(flag)
if (!flag) {
const store = useStore() const store = useStore()
store.state.collapsed = true store.state.collapsed = true
store.dispatch('app/setCollapsed', true) store.dispatch('app/setCollapsed', true)
......
...@@ -118,6 +118,6 @@ export const Common = { ...@@ -118,6 +118,6 @@ export const Common = {
return true; return true;
} }
}, },
// 不隐藏菜单和header的路由 // 隐藏菜单和header的路由
noHiddenMenu: ['/alarmCenter/alarmLog', '/alarmCenter/alarm/detail', '/alarmCenter/tamper'] noHiddenMenu: ['/monitor/activeLocation', '/monitor/resident', '/monitor/monitor', '/monitor/fence', '/monitor/replay', '/monitor/historyLocation']
} }
...@@ -41,9 +41,9 @@ export default { ...@@ -41,9 +41,9 @@ export default {
let flag = true let flag = true
// 新窗口打开 非地图页面 // 新窗口打开 非地图页面
Common.noHiddenMenu.map(val => { Common.noHiddenMenu.map(val => {
if (window.location.hash.indexOf(val) > -1) flag = false if (window.location.hash.indexOf(val) <= -1) flag = false
}) })
if (flag) state.isShowTopSider = false if (!flag) state.isShowTopSider = false
} }
const getCollapsed = (data) => { const getCollapsed = (data) => {
console.log(data); console.log(data);
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!