Explorar el Código

iamlogin->401

wd hace 4 años
padre
commit
abe5e93993
Se han modificado 1 ficheros con 4 adiciones y 2 borrados
  1. 4 2
      src/dashoo.cn/frontend_web/src/pages/login.vue

+ 4 - 2
src/dashoo.cn/frontend_web/src/pages/login.vue

@@ -263,15 +263,17 @@ import Base64 from 'base-64'
           // Cookies.set('iamCode', iamCode)
           this.$router.push({ path: '/' })
         } else {
-          this.$router.push({ name: 'login' })
+          // this.$router.push({ name: 'login' })
           // this.$router.push({ name: 'loginWqx' })
-          window.open('https://dgiam.scp.dgyt.petrochina/401', '_blank')
+          // window.open('https://dgiam.scp.dgyt.petrochina/401', '_blank')
+          window.location.href = 'https://dgiam.scp.dgyt.petrochina/401'
           // this.$message.error({
           //   duration: 10000,
           //   message: '您无权限登陆本系统'
           // })
         }
       }).catch(err => {
+        window.location.href = 'https://dgiam.scp.dgyt.petrochina/401'
         console.error(err)
       })
     },