feat: There is no way the, idm 登陆验证 修改小逻辑

This commit is contained in:
super_liu
2022-04-08 08:52:50 +08:00
parent 79ed0e799a
commit 8808629f9e
+6 -1
View File
@@ -117,7 +117,7 @@
mounted () {
let url = window.location.search
let code = "";
if(url){
if(url && url.indexOf("code") !== -1){
url = url.substr(1);
url = url.split('&');
let info = [];
@@ -129,6 +129,7 @@
}
code = url[0].code
}
if(code !== undefined && code !== ""){
let _formData = new FormData()
_formData.append('code', code === undefined ? "" : code)
loginIdm(_formData).then(res => {
@@ -150,6 +151,10 @@
}
}
})
}else {
this.$router.push('/home2')
// window.location.href = ssoLogoutUrlDev
}
if (this.$store.state.laws_urm !== '') {
this.isRemember = true