增加自动检查系统更新设置

This commit is contained in:
GoEdgeLab
2021-12-21 15:18:11 +08:00
parent 0df586f151
commit f48e91e558
39 changed files with 348 additions and 1497 deletions

View File

@@ -7,6 +7,13 @@
<td class="title">当前已安装版本</td>
<td>v{{version}}</td>
</tr>
<tr>
<td>自动检查</td>
<td>
<checkbox v-model="config.autoCheck" @input="changeAutoCheck"></checkbox>
<p class="comment">选中后系统将定时检查是否有新版本更新。</p>
</td>
</tr>
<tr v-if="isStarted">
<td>最新版本</td>
<td>

View File

@@ -21,4 +21,11 @@ Tea.context(function () {
this.isChecking = false
})
}
this.changeAutoCheck = function () {
this.$post(".update")
.params({
autoCheck: this.config.autoCheck ? 1 : 0
})
}
})