This commit is contained in:
parent
7e4161af9c
commit
565ae7bd9a
|
|
@ -257,7 +257,7 @@ export default {
|
||||||
console.log('🚀 ~ created ~ res:', res)
|
console.log('🚀 ~ created ~ res:', res)
|
||||||
if (res.code == 200) {
|
if (res.code == 200) {
|
||||||
setToken(res.data.access_token)
|
setToken(res.data.access_token)
|
||||||
this.$store.commit('SET_TOKEN', access_token)
|
this.$store.commit('SET_TOKEN', res.data.access_token)
|
||||||
setExpiresIn(1800)
|
setExpiresIn(1800)
|
||||||
this.$store.commit('SET_EXPIRES_IN', 1800)
|
this.$store.commit('SET_EXPIRES_IN', 1800)
|
||||||
}
|
}
|
||||||
|
|
@ -265,9 +265,9 @@ export default {
|
||||||
// this.$store.commit('SET_EXPIRES_IN', res.data.expires_in)
|
// this.$store.commit('SET_EXPIRES_IN', res.data.expires_in)
|
||||||
loading.close()
|
loading.close()
|
||||||
// 跳转首页
|
// 跳转首页
|
||||||
this.$nextTick(() => {
|
setTimeout(() => {
|
||||||
this.$router.push({ path: '/home/equipment-supply' })
|
this.$router.push({ path: '/home/equipment-supply' })
|
||||||
})
|
}, 300)
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
console.log('🚀 ~ created ~ error:', error)
|
console.log('🚀 ~ created ~ error:', error)
|
||||||
this.$message({
|
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/',
|
// '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)
|
}, 1500)
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue