Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
micro-customization-system
/
micro-portal
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit bcbffc31
authored
Jun 15, 2022
by
张晓玮
Browse Files
Options
Browse Files
Tag
Download
Plain Diff
Merge branch 'zxw-1.8.0' into 'v1.8.0'
新窗口打开 菜单header隐藏判断修改 See merge request
!15
2 parents
23ab8dbc
6bd625e2
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
5 deletions
src/App.vue
src/utils/common/common.js
src/views/Dashboard.vue
src/App.vue
View file @
bcbffc3
...
...
@@ -53,7 +53,8 @@ export default {
Common
.
noHiddenMenu
.
map
(
val
=>
{
if
(
window
.
location
.
hash
.
indexOf
(
val
)
>
-
1
)
flag
=
false
})
if
(
flag
)
{
console
.
log
(
flag
)
if
(
!
flag
)
{
const
store
=
useStore
()
store
.
state
.
collapsed
=
true
store
.
dispatch
(
'app/setCollapsed'
,
true
)
...
...
src/utils/common/common.js
View file @
bcbffc3
...
...
@@ -118,6 +118,6 @@ export const Common = {
return
true
;
}
},
//
不
隐藏菜单和header的路由
noHiddenMenu
:
[
'/
alarmCenter/alarmLog'
,
'/alarmCenter/alarm/detail'
,
'/alarmCenter/tamper
'
]
// 隐藏菜单和header的路由
noHiddenMenu
:
[
'/
monitor/activeLocation'
,
'/monitor/resident'
,
'/monitor/monitor'
,
'/monitor/fence'
,
'/monitor/replay'
,
'/monitor/historyLocation
'
]
}
src/views/Dashboard.vue
View file @
bcbffc3
...
...
@@ -41,9 +41,9 @@ export default {
let
flag
=
true
// 新窗口打开 非地图页面
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
)
=>
{
console
.
log
(
data
);
...
...
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment