forked from github/dataease
fix: 上传excel文件时,频繁出现登陆过期问题
This commit is contained in:
parent
8702af5db9
commit
2711415618
@ -237,8 +237,10 @@ import { $alert } from '@/utils/message'
|
|||||||
import store from '@/store'
|
import store from '@/store'
|
||||||
import msgCfm from '@/components/msgCfm/index'
|
import msgCfm from '@/components/msgCfm/index'
|
||||||
import cancelMix from './cancelMix'
|
import cancelMix from './cancelMix'
|
||||||
|
import Config from "@/settings";
|
||||||
|
|
||||||
const token = getToken()
|
const token = getToken()
|
||||||
|
const RefreshTokenKey = Config.RefreshTokenKey
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: 'AddExcel',
|
name: 'AddExcel',
|
||||||
@ -453,6 +455,12 @@ export default {
|
|||||||
this.$refs.tree.setCheckedKeys(this.defaultCheckedKeys)
|
this.$refs.tree.setCheckedKeys(this.defaultCheckedKeys)
|
||||||
})
|
})
|
||||||
this.fileList = fileList
|
this.fileList = fileList
|
||||||
|
|
||||||
|
if (response.headers[RefreshTokenKey]) {
|
||||||
|
const refreshToken = response.headers[RefreshTokenKey]
|
||||||
|
setToken(refreshToken)
|
||||||
|
store.dispatch('user/refreshToken', refreshToken)
|
||||||
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
save() {
|
save() {
|
||||||
|
Loading…
Reference in New Issue
Block a user