diff --git a/app.go b/app.go index 7bad630..d216045 100644 --- a/app.go +++ b/app.go @@ -59,7 +59,7 @@ func (a *App) startup(ctx context.Context) { } -func checkUpdate(a *App) { +func (a *App) CheckUpdate() { releaseVersion := &models.GitHubReleaseVersion{} _, err := resty.New().R(). SetResult(releaseVersion). @@ -126,7 +126,7 @@ func (a *App) domReady(ctx context.Context) { //检查新版本 go func() { - checkUpdate(a) + a.CheckUpdate() }() //检查谷歌浏览器 diff --git a/frontend/src/App.vue b/frontend/src/App.vue index eafed34..896591e 100644 --- a/frontend/src/App.vue +++ b/frontend/src/App.vue @@ -1,12 +1,11 @@