This commit is contained in:
zhangds 2024-03-25 19:39:18 +08:00
commit edc4e7f000
8 changed files with 72 additions and 24 deletions

View File

@ -157,11 +157,17 @@
/* 倒计时 */
const key_expiration_time = sessionStorage.getItem('key_expiration_time');
if (key_expiration_time != 0) {
setInterval(() => {
this.outTime = pageOutTime(key_expiration_time);
const cls = setInterval(() => {
const time = pageOutTime(key_expiration_time);
if (time) {
this.outTime = time;
} else {
this.outTime = ['00', '00', '00'];
clearInterval(cls);
}
}, 1000);
} else {
this.outTime = [];
this.outTime = ['00', '00', '00'];
}
},

View File

@ -157,11 +157,17 @@
/* 倒计时 */
const key_expiration_time = sessionStorage.getItem('key_expiration_time');
if (key_expiration_time != 0) {
setInterval(() => {
this.outTime = pageOutTime(key_expiration_time);
const cls = setInterval(() => {
const time = pageOutTime(key_expiration_time);
if (time) {
this.outTime = time;
} else {
this.outTime = ['00', '00', '00'];
clearInterval(cls);
}
}, 1000);
} else {
this.outTime = [];
this.outTime = ['00', '00', '00'];
}
},

View File

@ -185,11 +185,17 @@
/* 倒计时 */
const key_expiration_time = sessionStorage.getItem('key_expiration_time');
if (key_expiration_time != 0) {
setInterval(() => {
this.outTime = pageOutTime(key_expiration_time);
const cls = setInterval(() => {
const time = pageOutTime(key_expiration_time);
if (time) {
this.outTime = time;
} else {
this.outTime = ['00', '00', '00'];
clearInterval(cls);
}
}, 1000);
} else {
this.outTime = [];
this.outTime = ['00', '00', '00'];
}
},
filters: {

View File

@ -156,11 +156,17 @@
/* 倒计时 */
const key_expiration_time = sessionStorage.getItem('key_expiration_time');
if (key_expiration_time != 0) {
setInterval(() => {
this.outTime = pageOutTime(key_expiration_time);
const cls = setInterval(() => {
const time = pageOutTime(key_expiration_time);
if (time) {
this.outTime = time;
} else {
this.outTime = ['00', '00', '00'];
clearInterval(cls);
}
}, 1000);
} else {
this.outTime = [];
this.outTime = ['00', '00', '00'];
}
},
filters: {

View File

@ -156,11 +156,17 @@
/* 倒计时 */
const key_expiration_time = sessionStorage.getItem('key_expiration_time');
if (key_expiration_time != 0) {
setInterval(() => {
this.outTime = pageOutTime(key_expiration_time);
const cls = setInterval(() => {
const time = pageOutTime(key_expiration_time);
if (time) {
this.outTime = time;
} else {
this.outTime = ['00', '00', '00'];
clearInterval(cls);
}
}, 1000);
} else {
this.outTime = [];
this.outTime = ['00', '00', '00'];
}
},

View File

@ -186,11 +186,17 @@
/* 倒计时 */
const key_expiration_time = sessionStorage.getItem('key_expiration_time');
if (key_expiration_time != 0) {
setInterval(() => {
this.outTime = pageOutTime(key_expiration_time);
const cls = setInterval(() => {
const time = pageOutTime(key_expiration_time);
if (time) {
this.outTime = time;
} else {
this.outTime = ['00', '00', '00'];
clearInterval(cls);
}
}, 1000);
} else {
this.outTime = [];
this.outTime = ['00', '00', '00'];
}
},
filters: {

View File

@ -152,11 +152,17 @@
/* 倒计时 */
const key_expiration_time = sessionStorage.getItem('key_expiration_time');
if (key_expiration_time != 0) {
setInterval(() => {
this.outTime = pageOutTime(key_expiration_time);
const cls = setInterval(() => {
const time = pageOutTime(key_expiration_time);
if (time) {
this.outTime = time;
} else {
this.outTime = ['00', '00', '00'];
clearInterval(cls);
}
}, 1000);
} else {
this.outTime = [];
this.outTime = ['00', '00', '00'];
}
},
filters: {

View File

@ -151,11 +151,17 @@
/* 倒计时 */
const key_expiration_time = sessionStorage.getItem('key_expiration_time');
if (key_expiration_time != 0) {
setInterval(() => {
this.outTime = pageOutTime(key_expiration_time);
const cls = setInterval(() => {
const time = pageOutTime(key_expiration_time);
if (time) {
this.outTime = time;
} else {
this.outTime = ['00', '00', '00'];
clearInterval(cls);
}
}, 1000);
} else {
this.outTime = [];
this.outTime = ['00', '00', '00'];
}
},