Browse Source

修改子系统跳转

sss 3 năm trước cách đây
mục cha
commit
5f8da0b383
1 tập tin đã thay đổi với 4 bổ sung1 xóa
  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()
       })
 
     }