mirror of
https://github.com/soybeanjs/soybean-admin.git
synced 2025-09-29 14:46:41 +08:00
Update route.ts
如果 `next({ path: from.fullPath, replace: true, query: from.query, hash: to.hash });` 的意图是取消跳转的话 使用 next(false) 更准确。 而使用replace ,也许会和用户代码 一起产生 非预期的可能
This commit is contained in:
parent
8dcda38560
commit
94ec6fab5c
@ -189,7 +189,7 @@ function handleRouteSwitch(to: RouteLocationNormalized, from: RouteLocationNorma
|
|||||||
if (to.meta.href) {
|
if (to.meta.href) {
|
||||||
window.open(to.meta.href, '_blank');
|
window.open(to.meta.href, '_blank');
|
||||||
|
|
||||||
next({ path: from.fullPath, replace: true, query: from.query, hash: to.hash });
|
next(false);
|
||||||
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user