fix(frontend): fix the problem of autoRefresh failure (#24)

This commit is contained in:
Li4n0
2021-05-28 19:55:20 +08:00
committed by GitHub
parent efcbff23d8
commit b945069117
3 changed files with 5 additions and 6 deletions
+3 -4
View File
@@ -151,9 +151,6 @@ export default {
if (localStorage.getItem("autoRefresh") === null) {
this.autoRefresh = true;
}
if (this.autoRefresh && this.isLogMode) {
this.timing()
}
this.GetVersion()
},
created() {
@@ -177,8 +174,10 @@ export default {
localStorage.setItem('autoRefresh', val)
},
isLogMode(val) {
if (!val) {
if (!val && this.timer) {
clearInterval(this.timer)
} else if (this.autoRefresh && !this.timer) {
this.timing()
}
},
refreshInterval(val) {