tangning 3 months ago
parent
commit
93e4e7a64f
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/views/sys/login/LoginForm.vue

+ 1 - 1
src/views/sys/login/LoginForm.vue

@@ -199,7 +199,7 @@
           localStorage.removeItem('username');
         }
         if(query?.redirect && isUrl(query?.redirect as string)){
-          window.open(query?.redirect as string);
+          window.location(query?.redirect as string);
         }
         notification.success({
           message: t('sys.login.loginSuccessTitle'),