瀏覽代碼

iamlogin->401

wd 4 年之前
父節點
當前提交
abe5e93993
共有 1 個文件被更改,包括 4 次插入2 次删除
  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)
       })
     },