diff --git a/internal/web/actions/default/settings/updates/update.go b/internal/web/actions/default/settings/updates/update.go index 95ba021c..ca929a7a 100644 --- a/internal/web/actions/default/settings/updates/update.go +++ b/internal/web/actions/default/settings/updates/update.go @@ -4,6 +4,7 @@ package updates import ( "encoding/json" + teaconst "github.com/TeaOSLab/EdgeAdmin/internal/const" "github.com/TeaOSLab/EdgeAdmin/internal/web/actions/actionutils" "github.com/TeaOSLab/EdgeCommon/pkg/rpc/pb" "github.com/TeaOSLab/EdgeCommon/pkg/systemconfigs" @@ -48,5 +49,11 @@ func (this *UpdateAction) RunPost(params struct { return } + // 重置状态 + if !config.AutoCheck { + teaconst.NewVersionCode = "" + teaconst.NewVersionDownloadURL = "" + } + this.Success() }