Commit da003db4 authored by huangjie's avatar huangjie

*

parent f8bf9176
......@@ -268,7 +268,6 @@
},
getsms(){
logincaptchaSms(this.dxform).then(res=>{
console.log(res)
if(res.code == 200){
this.$message.success('已发送短信!')
let _this = this
......@@ -325,16 +324,22 @@
froms.phonenumber = this.dxform.phonenumber
froms.smsCode = this.dxform.smsCode
smsLogin(JSON.stringify(froms)).then(res => {
setToken(res.data.token)
store.commit('SET_TOKEN', res.data.token)
setTenantid(res.data.tenantId)
defaultTenantid().then(res=>{
if(res.data.tenantId == "" || res.data.tenantId == null){//无默认企业id
this.goin()
}else{
this.$router.push({ path: this.redirect || "/" }).catch(()=>{});
}
})
if(res.code == 200) {
setToken(res.data.token)
store.commit('SET_TOKEN', res.data.token)
setTenantid(res.data.tenantId)
defaultTenantid().then(res => {
if (res.data.tenantId == "" || res.data.tenantId == null) {//无默认企业id
this.goin()
} else {
this.$router.push({ path: this.redirect || "/" }).catch(() => {
});
}
})
}else{
this.getCode()
this.showcode = true
}
})
}
})
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment