Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
jinli gu
JSH ERP
Commits
efe6d4fa
Commit
efe6d4fa
authored
May 06, 2022
by
神话
Browse files
去掉页签的右键刷新按钮
parent
464e6e16
Changes
1
Hide whitespace changes
Inline
Side-by-side
jshERP-web/src/components/layouts/TabLayout.vue
View file @
efe6d4fa
...
...
@@ -19,10 +19,10 @@
<div
style=
"margin: 4px 4px 0;"
>
<transition
name=
"page-toggle"
>
<keep-alive
v-if=
"multipage"
:include=
"includedComponents"
>
<router-view
v-if=
"reloadFlag"
/>
<router-view
/>
</keep-alive>
<template
v-else
>
<router-view
v-if=
"reloadFlag"
/>
<router-view
/>
</
template
>
</transition>
<!-- iframe页 -->
...
...
@@ -30,8 +30,7 @@
v-for=
"item in hasOpenComponentsArr"
:key=
"item.name"
:is=
"item.name"
v-show=
"$route.path === item.path"
v-if=
"reloadIframeFlag"
>
v-show=
"$route.path === item.path"
>
</component>
</div>
</global-layout>
...
...
@@ -61,13 +60,10 @@
activePage
:
''
,
menuVisible
:
false
,
menuItemList
:
[
{
key
:
'
4
'
,
icon
:
'
reload
'
,
text
:
'
刷 新
'
},
{
key
:
'
1
'
,
icon
:
'
arrow-left
'
,
text
:
'
关闭左侧
'
},
{
key
:
'
2
'
,
icon
:
'
arrow-right
'
,
text
:
'
关闭右侧
'
},
{
key
:
'
3
'
,
icon
:
'
close
'
,
text
:
'
关闭其它
'
}
],
reloadFlag
:
true
,
reloadIframeFlag
:
true
,
componentsArr
:
[]
}
},
...
...
@@ -152,11 +148,9 @@
this
.
changeTitle
(
waitRouter
.
meta
.
title
)
},
'
multipage
'
:
function
(
newVal
)
{
if
(
this
.
reloadFlag
){
if
(
!
newVal
)
{
this
.
linkList
=
[
this
.
$route
.
fullPath
]
this
.
pageList
=
[
this
.
$route
]
}
if
(
!
newVal
)
{
this
.
linkList
=
[
this
.
$route
.
fullPath
]
this
.
pageList
=
[
this
.
$route
]
}
},
//从单页模式切换回多页模式后首页要居第一位
...
...
@@ -301,9 +295,6 @@
case
'
3
'
:
this
.
closeOthers
(
pageKey
)
break
case
'
4
'
:
this
.
routeReload
(
pageKey
)
break
default
:
break
}
...
...
@@ -384,24 +375,6 @@
this
.
activePage
=
key
}
},
//路由刷新
routeReload
(
pageKey
){
if
(
pageKey
.
indexOf
(
'
/system/plugins
'
)
>-
1
)
{
//从iframe缓存中关闭对应的页面
this
.
reloadIframeFlag
=
false
this
.
$nextTick
(()
=>
{
this
.
reloadIframeFlag
=
true
})
}
else
{
this
.
reloadFlag
=
false
let
ToggleMultipage
=
"
ToggleMultipage
"
this
.
$store
.
dispatch
(
ToggleMultipage
,
false
)
this
.
$nextTick
(()
=>
{
this
.
$store
.
dispatch
(
ToggleMultipage
,
true
)
this
.
reloadFlag
=
true
})
}
}
}
}
</
script
>
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
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 comment