默认自动检查版本更新

This commit is contained in:
GoEdgeLab
2023-07-20 09:38:09 +08:00
parent e3f0e11458
commit e2e8ea5d5d
3 changed files with 5 additions and 2 deletions

View File

@@ -59,7 +59,7 @@ func (this *CheckUpdatesTask) Loop() error {
return err
}
var valueJSON = valueResp.ValueJSON
var config = &systemconfigs.CheckUpdatesConfig{AutoCheck: false}
var config = systemconfigs.NewCheckUpdatesConfig()
if len(valueJSON) > 0 {
err = json.Unmarshal(valueJSON, config)
if err != nil {

View File

@@ -62,7 +62,7 @@
</tr>
</table>
<button class="ui button primary" type="button" @click.prevent="start" v-show="!isChecking">开始检查</button>
<button class="ui button primary" type="button" @click.prevent="start" v-show="!isChecking">开始检查</button>
<button class="ui button disabled" type="button" v-show="isChecking">正在检查...</button>
</form>
</div>

View File

@@ -33,6 +33,9 @@ Tea.context(function () {
.params({
autoCheck: this.config.autoCheck ? 1 : 0
})
.success(function () {
teaweb.successToast("已保存")
})
}
this.ignoreVersion = function (version) {