update 优化 优化快速点击页签刷新出现404问题
update 优化 优化页签全屏显示展示形式
This commit is contained in:
@@ -9,6 +9,10 @@ export default {
|
||||
*/
|
||||
async refreshPage(obj?: RouteLocationNormalized): Promise<void> {
|
||||
const { path, query, matched } = router.currentRoute.value;
|
||||
// 防止在重定向过程中重复刷新
|
||||
if (path.startsWith('/redirect/')) {
|
||||
return Promise.resolve();
|
||||
}
|
||||
if (obj === undefined) {
|
||||
matched.forEach((m: RouteLocationMatched) => {
|
||||
if (m.components && m.components.default && m.components.default.name) {
|
||||
|
||||
Reference in New Issue
Block a user