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 b7ea9ba2
authored
Jun 16, 2022
by
张晓玮
Browse Files
Options
Browse Files
Tag
Download
Plain Diff
Merge branch 'zxw-1.8.0' into 'v1.8.0'
隐藏菜单白名单修改 See merge request
!17
2 parents
ffecbfb9
296a4123
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
src/App.vue
src/views/Dashboard.vue
src/App.vue
View file @
b7ea9ba
...
...
@@ -49,7 +49,7 @@ export default {
// 判断页面是否通过window.open 打开(v1.7.0版本地图页面操作是打开新窗口 将菜单栏隐藏)
let
flag
=
true
let
locationHash
=
window
.
location
.
hash
let
hiddenMenu
=
JSON
.
parse
(
localStorage
.
getItem
(
'hiddenMenu'
))
let
hiddenMenu
=
Common
.
hiddenMenu
hiddenMenu
.
map
(
val
=>
{
if
(
locationHash
.
indexOf
(
val
)
>
-
1
&&
locationHash
.
indexOf
(
'?'
)
>
-
1
)
{
flag
=
false
...
...
src/views/Dashboard.vue
View file @
b7ea9ba
...
...
@@ -38,7 +38,7 @@ export default {
});
let
flag
=
true
let
locationHash
=
window
.
location
.
hash
let
hiddenMenu
=
JSON
.
parse
(
localStorage
.
getItem
(
'hiddenMenu'
))
let
hiddenMenu
=
Common
.
hiddenMenu
// 新窗口打开 非地图页面
hiddenMenu
.
map
(
val
=>
{
if
(
locationHash
.
indexOf
(
val
)
>
-
1
&&
window
.
location
.
hash
.
indexOf
(
'?'
)
>
-
1
)
flag
=
false
...
...
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