🦀️ fix: 修复bug

This commit is contained in:
wangsongsole 2024-03-25 19:36:15 +08:00
parent 270353ae7f
commit efac811246
4 changed files with 36 additions and 12 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

@ -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'];
}
},