This commit is contained in:
qsh
2023-03-21 00:53:28 +08:00
parent 953377e655
commit 955687d473
171 changed files with 7149 additions and 7341 deletions

View File

@@ -1,4 +1,4 @@
import store from '@/store'
import store from '@/store';
import router from '@/router';
export default {
@@ -15,16 +15,16 @@ export default {
});
}
return store.dispatch('tagsView/delCachedView', obj).then(() => {
const { path, query } = obj
const { path, query } = obj;
router.replace({
path: '/redirect' + path,
query: query
})
})
});
});
},
// 关闭当前tab页签打开新页签
closeOpenPage(obj) {
store.dispatch("tagsView/delView", router.currentRoute);
store.dispatch('tagsView/delView', router.currentRoute);
if (obj !== undefined) {
return router.push(obj);
}
@@ -56,7 +56,12 @@ export default {
},
// 添加tab页签
openPage(title, url, params) {
var obj = { path: url, meta: { title: title } }
var obj = {
path: url,
meta: {
title: title
}
};
store.dispatch('tagsView/addView', obj);
return router.push({ path: url, query: params });
},
@@ -64,4 +69,4 @@ export default {
updatePage(obj) {
return store.dispatch('tagsView/updateVisitedView', obj);
}
}
};