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 acaa1306
authored
Apr 27, 2022
by
zhangxw
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
打开新窗口 隐藏菜单和header
1 parent
5498c6ed
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
18 additions
and
3 deletions
src/App.vue
src/views/Dashboard.vue
src/App.vue
View file @
acaa130
...
@@ -46,7 +46,13 @@ export default {
...
@@ -46,7 +46,13 @@ export default {
let
showLoading
=
computed
(()
=>
{
let
showLoading
=
computed
(()
=>
{
return
store
.
getters
.
showLoading
;
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
})
}
return
{
return
{
hasToken
,
hasToken
,
showLoading
showLoading
...
...
src/views/Dashboard.vue
View file @
acaa130
...
@@ -10,7 +10,7 @@
...
@@ -10,7 +10,7 @@
<div
class=
"container"
>
<div
class=
"container"
>
<desktop-left-sider></desktop-left-sider>
<desktop-left-sider></desktop-left-sider>
<el-container
direction=
"vertical"
id=
"desktop-right-sider"
>
<el-container
direction=
"vertical"
id=
"desktop-right-sider"
>
<desktop-top-sider></desktop-top-sider>
<desktop-top-sider
v-if=
"isShowTopSider"
></desktop-top-sider>
<desktop-right-sider></desktop-right-sider>
<desktop-right-sider></desktop-right-sider>
</el-container>
</el-container>
</div>
</div>
...
@@ -30,11 +30,20 @@ export default {
...
@@ -30,11 +30,20 @@ export default {
DesktopTopSider
,
DesktopTopSider
,
DesktopRightSider
DesktopRightSider
},
},
data
()
{
return
{
isShowTopSider
:
true
}
},
created
()
{
if
(
window
.
opener
)
{
this
.
isShowTopSider
=
false
}
},
setup
()
{
setup
()
{
const
state
=
reactive
({
const
state
=
reactive
({
collapsed
:
false
collapsed
:
false
});
});
const
getCollapsed
=
(
data
)
=>
{
const
getCollapsed
=
(
data
)
=>
{
console
.
log
(
data
);
console
.
log
(
data
);
state
.
collapsed
=
data
;
state
.
collapsed
=
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