sss преди 3 години
родител
ревизия
5f8da0b383
променени са 1 файла, в които са добавени 4 реда и са изтрити 1 реда
  1. 4 1
      src/views/dm/systemNavigation/index.vue

+ 4 - 1
src/views/dm/systemNavigation/index.vue

@@ -45,7 +45,10 @@ export default {
       findPassWord(this.user.username).then(res => {
         const username = encrypt(this.user.username)
         const password = this.userPassword
-        location.href = `${url}/#/sso?username=${encodeURIComponent(username)}&password=${encodeURIComponent(password)}`
+        let aEle = document.createElement('a')
+        a.href = `${url}/#/sso?username=${encodeURIComponent(username)}&password=${encodeURIComponent(password)}`
+        a.target = '_blank'
+        a.click()
       })
 
     }