This commit is contained in:
bb_pan 2025-04-07 17:44:24 +08:00
parent 7e4161af9c
commit 565ae7bd9a
1 changed files with 4 additions and 4 deletions

View File

@ -257,7 +257,7 @@ export default {
console.log('🚀 ~ created ~ res:', res)
if (res.code == 200) {
setToken(res.data.access_token)
this.$store.commit('SET_TOKEN', access_token)
this.$store.commit('SET_TOKEN', res.data.access_token)
setExpiresIn(1800)
this.$store.commit('SET_EXPIRES_IN', 1800)
}
@ -265,9 +265,9 @@ export default {
// this.$store.commit('SET_EXPIRES_IN', res.data.expires_in)
loading.close()
//
this.$nextTick(() => {
setTimeout(() => {
this.$router.push({ path: '/home/equipment-supply' })
})
}, 300)
} catch (error) {
console.log('🚀 ~ created ~ error:', error)
this.$message({
@ -280,7 +280,7 @@ export default {
// 'http://sgwpdm.ah.sgcc.com.cn/iws/cas/login?appId=3874dcb953f184dc75450e33d6d6d4fa&service=http://sgwpdm.ah.sgcc.com.cn/iws/mea-view/',
// )
//
// window.close()
window.close()
}, 1500)
}
} else {