mirror of https://github.com/1Panel-dev/1Panel
fix: 解决 PostgreSQL 页面切换的样式问题 (#5332)
parent
859ace71df
commit
c394efa2ec
|
@ -240,7 +240,7 @@ func (u *MysqlService) DeleteCheck(req dto.MysqlDBDeleteCheck) ([]string, error)
|
|||
}
|
||||
}
|
||||
} else {
|
||||
apps, _ := appInstallResourceRepo.GetBy(appInstallResourceRepo.WithResourceId(db.ID))
|
||||
apps, _ := appInstallResourceRepo.GetBy(appInstallResourceRepo.WithResourceId(db.ID), appRepo.WithKey(req.Type))
|
||||
for _, app := range apps {
|
||||
appInstall, _ := appInstallRepo.GetFirst(commonRepo.WithByID(app.AppInstallId))
|
||||
if appInstall.ID != 0 {
|
||||
|
|
|
@ -266,7 +266,7 @@ func (u *PostgresqlService) DeleteCheck(req dto.PostgresqlDBDeleteCheck) ([]stri
|
|||
}
|
||||
}
|
||||
} else {
|
||||
apps, _ := appInstallResourceRepo.GetBy(appInstallResourceRepo.WithResourceId(db.ID))
|
||||
apps, _ := appInstallResourceRepo.GetBy(appInstallResourceRepo.WithResourceId(db.ID), appRepo.WithKey(req.Type))
|
||||
for _, app := range apps {
|
||||
appInstall, _ := appInstallRepo.GetFirst(commonRepo.WithByID(app.AppInstallId))
|
||||
if appInstall.ID != 0 {
|
||||
|
|
|
@ -512,6 +512,9 @@ const loadDBOptions = async () => {
|
|||
}
|
||||
}
|
||||
if (currentDB.value) {
|
||||
if (currentDB.value.from === 'remote') {
|
||||
maskShow.value = false;
|
||||
}
|
||||
globalStore.setCurrentDB('');
|
||||
search();
|
||||
return;
|
||||
|
|
|
@ -469,6 +469,9 @@ const loadDBOptions = async () => {
|
|||
}
|
||||
}
|
||||
if (currentDB.value) {
|
||||
if (currentDB.value.from === 'remote') {
|
||||
maskShow.value = false;
|
||||
}
|
||||
globalStore.setCurrentDB('');
|
||||
search();
|
||||
return;
|
||||
|
|
Loading…
Reference in New Issue