Merge pull request #54 from bufanyun/v2.0

up
This commit is contained in:
maxbad
2023-11-13 09:39:52 +08:00
committed by GitHub
2 changed files with 6 additions and 2 deletions

View File

@@ -296,8 +296,10 @@
// 刷新页面 // 刷新页面
const reloadPage = () => { const reloadPage = () => {
const full = unref(route);
router.push({ router.push({
path: '/redirect' + unref(route).fullPath, path: '/redirect' + full.path,
query: full.query,
}); });
}; };

View File

@@ -327,8 +327,10 @@
// 刷新页面 // 刷新页面
const reloadPage = () => { const reloadPage = () => {
delKeepAliveCompName(); delKeepAliveCompName();
const full = unref(route);
router.push({ router.push({
path: '/redirect' + unref(route).fullPath, path: '/redirect' + full.path,
query: full.query,
}); });
}; };