From fb89f9b85b5f46c9db12e016e2c22547c3a449a8 Mon Sep 17 00:00:00 2001 From: mtruning <1262327911@qq.com> Date: Mon, 7 Mar 2022 01:04:29 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E6=8E=A5=E6=94=B6winopen=E7=9A=84?= =?UTF-8?q?=E8=BF=94=E5=9B=9E=E5=80=BC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/utils/router.ts | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/utils/router.ts b/src/utils/router.ts index ac068b48..9e46bbea 100644 --- a/src/utils/router.ts +++ b/src/utils/router.ts @@ -65,8 +65,7 @@ export const routerTurnByPath = ( fullPath = `${path}/${query.join('/')}` } if (windowOpen) { - openNewWindow(fullPath) - return + return openNewWindow(fullPath) } if (isReplace) { router.replace({ @@ -110,7 +109,7 @@ export const logout = () => { * @param url */ export const openNewWindow = (url: string) => { - window.open(url, '_blank') + return window.open(url, '_blank') } /**