登录页从路由中获取token登录添加loading
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
parent
50b05afda0
commit
67e1ea542e
|
@ -1,5 +1,6 @@
|
||||||
<template>
|
<template>
|
||||||
<div class="login-container">
|
<div class="login-container" v-loading="loginLoading" :element-loading-text="$t('login:tip:waitLogin')"
|
||||||
|
element-loading-spinner="el-icon-loading" element-loading-background="rgba(0, 0, 0, 0.8)">
|
||||||
<div class="login-header">
|
<div class="login-header">
|
||||||
<!-- <img src="@/assets/login-logo.png" class="login-logo"> -->
|
<!-- <img src="@/assets/login-logo.png" class="login-logo"> -->
|
||||||
</div>
|
</div>
|
||||||
|
@ -183,6 +184,8 @@ export default {
|
||||||
|
|
||||||
toggleRoleVisible: false,
|
toggleRoleVisible: false,
|
||||||
toggleRoleLoading: false,
|
toggleRoleLoading: false,
|
||||||
|
|
||||||
|
loginLoading: false
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
computed: {
|
computed: {
|
||||||
|
@ -216,6 +219,7 @@ export default {
|
||||||
}
|
}
|
||||||
// }
|
// }
|
||||||
if (this.$route.query.token) {
|
if (this.$route.query.token) {
|
||||||
|
this.loginLoading = true
|
||||||
this.TJUserLoginInfo(this.$route.query.token)
|
this.TJUserLoginInfo(this.$route.query.token)
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
@ -287,6 +291,7 @@ export default {
|
||||||
UserId: res[0].Id, UserTypeId: res[0].UserTypeId
|
UserId: res[0].Id, UserTypeId: res[0].UserTypeId
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
this.loginLoading = false
|
||||||
this.toggleRoleVisible = true
|
this.toggleRoleVisible = true
|
||||||
}).catch(err => {
|
}).catch(err => {
|
||||||
console.log(err)
|
console.log(err)
|
||||||
|
|
Loading…
Reference in New Issue