优化快速点击页签刷新出现404问题
This commit is contained in:
@@ -5,6 +5,10 @@ export default {
|
|||||||
// 刷新当前tab页签
|
// 刷新当前tab页签
|
||||||
refreshPage(obj) {
|
refreshPage(obj) {
|
||||||
const { path, query, matched } = router.currentRoute
|
const { path, query, matched } = router.currentRoute
|
||||||
|
// 防止在重定向过程中重复刷新
|
||||||
|
if (path.startsWith('/redirect/')) {
|
||||||
|
return Promise.resolve()
|
||||||
|
}
|
||||||
if (obj === undefined) {
|
if (obj === undefined) {
|
||||||
matched.forEach((m) => {
|
matched.forEach((m) => {
|
||||||
if (m.components && m.components.default && m.components.default.name) {
|
if (m.components && m.components.default && m.components.default.name) {
|
||||||
|
|||||||
Reference in New Issue
Block a user