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
464e6e16
Commit
464e6e16
authored
May 06, 2022
by
神话
Browse files
优化页签的右键刷新问题
parent
ce896e10
Changes
1
Hide whitespace changes
Inline
Side-by-side
jshERP-web/src/components/layouts/TabLayout.vue
View file @
464e6e16
...
@@ -30,7 +30,8 @@
...
@@ -30,7 +30,8 @@
v-for=
"item in hasOpenComponentsArr"
v-for=
"item in hasOpenComponentsArr"
:key=
"item.name"
:key=
"item.name"
:is=
"item.name"
:is=
"item.name"
v-show=
"$route.path === item.path"
>
v-show=
"$route.path === item.path"
v-if=
"reloadIframeFlag"
>
</component>
</component>
</div>
</div>
</global-layout>
</global-layout>
...
@@ -66,6 +67,7 @@
...
@@ -66,6 +67,7 @@
{
key
:
'
3
'
,
icon
:
'
close
'
,
text
:
'
关闭其它
'
}
{
key
:
'
3
'
,
icon
:
'
close
'
,
text
:
'
关闭其它
'
}
],
],
reloadFlag
:
true
,
reloadFlag
:
true
,
reloadIframeFlag
:
true
,
componentsArr
:
[]
componentsArr
:
[]
}
}
},
},
...
@@ -300,7 +302,7 @@
...
@@ -300,7 +302,7 @@
this
.
closeOthers
(
pageKey
)
this
.
closeOthers
(
pageKey
)
break
break
case
'
4
'
:
case
'
4
'
:
this
.
routeReload
()
this
.
routeReload
(
pageKey
)
break
break
default
:
default
:
break
break
...
@@ -383,14 +385,22 @@
...
@@ -383,14 +385,22 @@
}
}
},
},
//路由刷新
//路由刷新
routeReload
(){
routeReload
(
pageKey
){
this
.
reloadFlag
=
false
if
(
pageKey
.
indexOf
(
'
/system/plugins
'
)
>-
1
)
{
let
ToggleMultipage
=
"
ToggleMultipage
"
//从iframe缓存中关闭对应的页面
this
.
$store
.
dispatch
(
ToggleMultipage
,
false
)
this
.
reloadIframeFlag
=
false
this
.
$nextTick
(()
=>
{
this
.
$nextTick
(()
=>
{
this
.
$store
.
dispatch
(
ToggleMultipage
,
true
)
this
.
reloadIframeFlag
=
true
this
.
reloadFlag
=
true
})
})
}
else
{
this
.
reloadFlag
=
false
let
ToggleMultipage
=
"
ToggleMultipage
"
this
.
$store
.
dispatch
(
ToggleMultipage
,
false
)
this
.
$nextTick
(()
=>
{
this
.
$store
.
dispatch
(
ToggleMultipage
,
true
)
this
.
reloadFlag
=
true
})
}
}
}
}
}
}
}
...
...
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