Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
micro-customization-system
/
oEshield
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
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit c9d891bd
authored
Jun 15, 2022
by
张晓玮
Browse Files
Options
Browse Files
Tag
Download
Plain Diff
Merge branch 'zxw-1.8.0' into 'v1.8.0'
打开新窗口逻辑判断修改 See merge request
!23
2 parents
5a3a94c9
37d8ff25
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
1 deletions
src/pages/FullWidthLayout.vue
src/pages/FullWidthLayout.vue
View file @
c9d891b
...
...
@@ -21,7 +21,14 @@ export default {
// vBreadcrumb
},
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
>
...
...
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