-
+
{{this.$t('Importing')}}...
@@ -127,6 +127,23 @@
}
this.spinning = false
} else {
+ let data = info.file.response
+ const token = Vue.ls.get(ACCESS_TOKEN)
+ if (token && data.message.includes('Token失效')) {
+ Modal.error({
+ title: '登录已过期',
+ content: '很抱歉,登录已过期,请重新登录',
+ okText: '重新登录',
+ mask: false,
+ onOk: () => {
+ store.dispatch('Logout').then(() => {
+ Vue.ls.remove(ACCESS_TOKEN)
+ window.location.reload()
+ })
+ }
+ })
+ return
+ }
let { message } = info.file.response
let { name } = info.file
let content = []
@@ -185,7 +202,7 @@
}