From 30b9c5eda5605d6712965e613c62e959c8a9f188 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=88=98=E7=A5=A5=E8=B6=85?= Date: Thu, 20 Jul 2023 09:38:09 +0800 Subject: [PATCH] =?UTF-8?q?=E9=BB=98=E8=AE=A4=E8=87=AA=E5=8A=A8=E6=A3=80?= =?UTF-8?q?=E6=9F=A5=E7=89=88=E6=9C=AC=E6=9B=B4=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- internal/tasks/task_check_updates.go | 2 +- web/views/@default/settings/updates/index.html | 2 +- web/views/@default/settings/updates/index.js | 3 +++ 3 files changed, 5 insertions(+), 2 deletions(-) diff --git a/internal/tasks/task_check_updates.go b/internal/tasks/task_check_updates.go index 62f86d8b..fe2b2d6d 100644 --- a/internal/tasks/task_check_updates.go +++ b/internal/tasks/task_check_updates.go @@ -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 { diff --git a/web/views/@default/settings/updates/index.html b/web/views/@default/settings/updates/index.html index cde76d6c..211e1e2f 100644 --- a/web/views/@default/settings/updates/index.html +++ b/web/views/@default/settings/updates/index.html @@ -62,7 +62,7 @@ - + \ No newline at end of file diff --git a/web/views/@default/settings/updates/index.js b/web/views/@default/settings/updates/index.js index be8c411d..f3ecc9e0 100644 --- a/web/views/@default/settings/updates/index.js +++ b/web/views/@default/settings/updates/index.js @@ -33,6 +33,9 @@ Tea.context(function () { .params({ autoCheck: this.config.autoCheck ? 1 : 0 }) + .success(function () { + teaweb.successToast("已保存") + }) } this.ignoreVersion = function (version) {