|
@@ -349,14 +349,15 @@ export default {
|
|
|
this.num--;
|
|
|
} else {
|
|
|
if (this.timer) {
|
|
|
- const res = await this.repeat_initData();
|
|
|
- const { code, data, message } = await this.useResHandle(res);
|
|
|
- const { status } = data ?? {};
|
|
|
- if (code === 0 && status + "" === "1") {
|
|
|
+ const { code, status, message } = await this.repeat_initData();
|
|
|
+ if (code === 0 && status === "1") {
|
|
|
this.num = 60;
|
|
|
- } else if (code === 0 && status + "" !== "1") {
|
|
|
+ } else if (code === 0 && status !== "1") {
|
|
|
this.status = status;
|
|
|
this.clearTime();
|
|
|
+ } else if (code >= 100 && code <= 104) {
|
|
|
+ this.clearTime();
|
|
|
+ await this.logout();
|
|
|
} else {
|
|
|
this.clearTime();
|
|
|
this.$message.warning(message);
|