Bläddra i källkod

修改子系统跳转

sss 3 år sedan
förälder
incheckning
5f8da0b383
1 ändrade filer med 4 tillägg och 1 borttagningar
  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()
       })
 
     }