|
@@ -575,9 +575,11 @@ export default {
|
|
|
let json = JSON.parse(res);
|
|
|
if(json.code == 403) {
|
|
|
this.$message.error(`登录过期,请重新登录!`)
|
|
|
- this.$store.dispatch('user/resetToken').then(() => {
|
|
|
- location.reload()
|
|
|
- })
|
|
|
+ setTimeout(() => {
|
|
|
+ this.$store.dispatch('user/resetToken').then(() => {
|
|
|
+ location.reload()
|
|
|
+ })
|
|
|
+ }, 1000);
|
|
|
return
|
|
|
}
|
|
|
this.$message.error(json.msg);
|
|
@@ -646,9 +648,11 @@ export default {
|
|
|
let json = JSON.parse(res);
|
|
|
if(json.code == 403) {
|
|
|
this.$message.error(`登录过期,请重新登录!`)
|
|
|
- this.$store.dispatch('user/resetToken').then(() => {
|
|
|
- location.reload()
|
|
|
- })
|
|
|
+ setTimeout(() => {
|
|
|
+ this.$store.dispatch('user/resetToken').then(() => {
|
|
|
+ location.reload()
|
|
|
+ })
|
|
|
+ }, 1000);
|
|
|
return
|
|
|
}
|
|
|
this.$message.error(json.msg);
|
|
@@ -714,9 +718,11 @@ export default {
|
|
|
let json = JSON.parse(res);
|
|
|
if(json.code == 403) {
|
|
|
this.$message.error(`登录过期,请重新登录!`)
|
|
|
- this.$store.dispatch('user/resetToken').then(() => {
|
|
|
- location.reload()
|
|
|
- })
|
|
|
+ setTimeout(() => {
|
|
|
+ this.$store.dispatch('user/resetToken').then(() => {
|
|
|
+ location.reload()
|
|
|
+ })
|
|
|
+ }, 1000);
|
|
|
return
|
|
|
}
|
|
|
this.$message.error(json.msg);
|
|
@@ -782,9 +788,11 @@ export default {
|
|
|
let json = JSON.parse(res);
|
|
|
if(json.code == 403) {
|
|
|
this.$message.error(`登录过期,请重新登录!`)
|
|
|
- this.$store.dispatch('user/resetToken').then(() => {
|
|
|
- location.reload()
|
|
|
- })
|
|
|
+ setTimeout(() => {
|
|
|
+ this.$store.dispatch('user/resetToken').then(() => {
|
|
|
+ location.reload()
|
|
|
+ })
|
|
|
+ }, 1000);
|
|
|
return
|
|
|
}
|
|
|
this.$message.error(json.msg);
|
|
@@ -854,9 +862,11 @@ export default {
|
|
|
let json = JSON.parse(res);
|
|
|
if(json.code == 403) {
|
|
|
this.$message.error(`登录过期,请重新登录!`)
|
|
|
- this.$store.dispatch('user/resetToken').then(() => {
|
|
|
- location.reload()
|
|
|
- })
|
|
|
+ setTimeout(() => {
|
|
|
+ this.$store.dispatch('user/resetToken').then(() => {
|
|
|
+ location.reload()
|
|
|
+ })
|
|
|
+ }, 1000);
|
|
|
return
|
|
|
}
|
|
|
this.$message.error(json.msg);
|
|
@@ -1045,9 +1055,11 @@ export default {
|
|
|
this.$message.info(res.data.msg);
|
|
|
} else if(res.data.code == 403) {
|
|
|
this.$message.error(`登录过期,请重新登录!`)
|
|
|
- this.$store.dispatch('user/resetToken').then(() => {
|
|
|
- location.reload()
|
|
|
- })
|
|
|
+ setTimeout(() => {
|
|
|
+ this.$store.dispatch('user/resetToken').then(() => {
|
|
|
+ location.reload()
|
|
|
+ })
|
|
|
+ }, 1000);
|
|
|
} else {
|
|
|
this.$message.error(res.data.msg);
|
|
|
}
|