mirror of
https://github.com/1Panel-dev/1Panel.git
synced 2025-09-11 00:54:55 +08:00
fix: 解决修改分组之后 网站页面过滤条件分组没有刷新的问题 (#565)
This commit is contained in:
parent
4c2fb7095d
commit
d00e5b0421
5 changed files with 5 additions and 4 deletions
|
@ -508,7 +508,6 @@ func (a AppService) SyncAppListFromLocal() {
|
||||||
}
|
}
|
||||||
tx.Commit()
|
tx.Commit()
|
||||||
global.LOG.Infof("sync local apps success")
|
global.LOG.Infof("sync local apps success")
|
||||||
return
|
|
||||||
}
|
}
|
||||||
func (a AppService) SyncAppListFromRemote() error {
|
func (a AppService) SyncAppListFromRemote() error {
|
||||||
updateRes, err := a.GetAppUpdate()
|
updateRes, err := a.GetAppUpdate()
|
||||||
|
|
|
@ -417,6 +417,9 @@ func upApp(ctx context.Context, appInstall model.AppInstall) {
|
||||||
if err == nil {
|
if err == nil {
|
||||||
var composeService *composeV2.ComposeService
|
var composeService *composeV2.ComposeService
|
||||||
composeService, err = getServiceFromInstall(appInstall)
|
composeService, err = getServiceFromInstall(appInstall)
|
||||||
|
if err != nil {
|
||||||
|
return err
|
||||||
|
}
|
||||||
err = composeService.ComposeUp()
|
err = composeService.ComposeUp()
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return err
|
return err
|
||||||
|
|
|
@ -47,7 +47,7 @@ func Run() {
|
||||||
for i := 0; i < len(cronJobs); i++ {
|
for i := 0; i < len(cronJobs); i++ {
|
||||||
entryID, err := service.NewICronjobService().StartJob(&cronJobs[i])
|
entryID, err := service.NewICronjobService().StartJob(&cronJobs[i])
|
||||||
if err != nil {
|
if err != nil {
|
||||||
global.LOG.Errorf("start %s job %s failed, err: %v", &cronJobs[i].Type, &cronJobs[i].Name, err)
|
global.LOG.Errorf("start %s job %s failed, err: %v", cronJobs[i].Type, cronJobs[i].Name, err)
|
||||||
}
|
}
|
||||||
if err := repo.NewICronjobRepo().Update(cronJobs[i].ID, map[string]interface{}{"entry_id": entryID}); err != nil {
|
if err := repo.NewICronjobRepo().Update(cronJobs[i].ID, map[string]interface{}{"entry_id": entryID}); err != nil {
|
||||||
global.LOG.Errorf("update cronjob %s %s failed, err: %v", cronJobs[i].Type, cronJobs[i].Name, err)
|
global.LOG.Errorf("update cronjob %s %s failed, err: %v", cronJobs[i].Type, cronJobs[i].Name, err)
|
||||||
|
|
|
@ -437,7 +437,6 @@ func (f FileOp) Compress(srcRiles []string, dst string, name string, cType Compr
|
||||||
_ = f.DeleteFile(dstFile)
|
_ = f.DeleteFile(dstFile)
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
break
|
|
||||||
}
|
}
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
|
@ -150,7 +150,7 @@
|
||||||
<UploadDialog ref="uploadRef" />
|
<UploadDialog ref="uploadRef" />
|
||||||
<Backups ref="dialogBackupRef" />
|
<Backups ref="dialogBackupRef" />
|
||||||
<DefaultServer ref="defaultRef" />
|
<DefaultServer ref="defaultRef" />
|
||||||
<GroupDialog @search="search" ref="groupRef" />
|
<GroupDialog @search="listGroup" ref="groupRef" />
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue