mirror of
https://github.com/TeaOSLab/EdgeAdmin.git
synced 2025-12-10 00:00:26 +08:00
增加自动检查系统更新设置
This commit is contained in:
@@ -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>
|
||||
|
||||
@@ -21,4 +21,11 @@ Tea.context(function () {
|
||||
this.isChecking = false
|
||||
})
|
||||
}
|
||||
|
||||
this.changeAutoCheck = function () {
|
||||
this.$post(".update")
|
||||
.params({
|
||||
autoCheck: this.config.autoCheck ? 1 : 0
|
||||
})
|
||||
}
|
||||
})
|
||||
Reference in New Issue
Block a user