Prechádzať zdrojové kódy

修改子系统跳转

sss 3 rokov pred
rodič
commit
5f8da0b383
1 zmenil súbory, kde vykonal 4 pridanie a 1 odobranie
  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()
       })
 
     }