mirror of
https://github.com/soybeanjs/soybean-admin.git
synced 2025-11-14 04:33:41 +08:00
fix(components): 页面跳转被拦截, 则会出现 tab 页签与页面不一致的问题
This commit is contained in:
@@ -19,9 +19,9 @@ export function useRouterPush(inSetup = true) {
|
||||
if (newTab) {
|
||||
const routerData = router.resolve(to);
|
||||
window.open(routerData.href, '_blank');
|
||||
} else {
|
||||
router.push(to);
|
||||
return Promise.resolve();
|
||||
}
|
||||
return router.push(to);
|
||||
}
|
||||
|
||||
/** 返回上一级路由 */
|
||||
|
||||
Reference in New Issue
Block a user