|
@@ -454,9 +454,9 @@ export default {
|
|
|
this.$Spin.show(); //開啟加載畫面
|
|
|
let redirect_uri = window.location.origin + '/login'
|
|
|
this.$api.OauthLogin(this.userOauth.state, this.userOauth.code, redirect_uri).then(res => {
|
|
|
-
|
|
|
+
|
|
|
let tokenData = jwtDecode(res.id_token)
|
|
|
- localStorage.setItem("access_token",res.access_token)
|
|
|
+ localStorage.setItem("access_token", res.access_token)
|
|
|
/**
|
|
|
* TODO
|
|
|
* 先暂时不处理微信绑定手机号验证,等后续确认
|
|
@@ -477,6 +477,7 @@ export default {
|
|
|
// this.loginProcess(res, this.defaultSchool.code)
|
|
|
// }
|
|
|
this.loginProcess(res, this.defaultSchool.code)
|
|
|
+ this.$Spin.hide(); //關閉加載畫面
|
|
|
})
|
|
|
},
|
|
|
SSOLogin: function (code) { // 快速登入
|
|
@@ -499,7 +500,7 @@ export default {
|
|
|
// 登录学生端
|
|
|
if (identity === 'student') {
|
|
|
this.$loginTools.stuLoginById(item)
|
|
|
- // await this.$api.login.studLoginbyID(item).then(res => {
|
|
|
+ // await this.$api.login.studLoginbyID(item).then(res => {
|
|
|
// result = res
|
|
|
// })
|
|
|
// //設定權限並登入 学生端默认权限
|
|
@@ -517,7 +518,7 @@ export default {
|
|
|
}
|
|
|
// 登录教师端
|
|
|
else {
|
|
|
- this.$loginTools.teacherLogin(item, schoolCode)
|
|
|
+ this.$loginTools.teacherLogin(item, schoolCode)
|
|
|
// await this.$api.login.teacherLogin(item, schoolCode).then(res => {
|
|
|
// result = res
|
|
|
// })
|