fix: 解决数据库切换时,状态标签显示不正常的问题 (#2177)

This commit is contained in:
ssongliu 2023-09-04 17:40:14 +08:00 committed by GitHub
parent ea17c451a6
commit 0c2d971d72
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View file

@ -145,7 +145,7 @@ func (a *AppInstallService) CheckExist(req request.AppInstalledInfo) (*response.
if len(req.Name) == 0 {
appInstall, _ = appInstallRepo.GetFirst(appInstallRepo.WithAppId(app.ID))
} else {
appInstall, _ = appInstallRepo.GetFirst(commonRepo.WithByName(req.Name))
appInstall, _ = appInstallRepo.GetFirst(appInstallRepo.WithAppId(app.ID), commonRepo.WithByName(req.Name))
}
if reflect.DeepEqual(appInstall, model.AppInstall{}) {

View file

@ -10,7 +10,7 @@
</div>
</el-card>
</div>
<LayoutContent :title="'MySQL ' + $t('menu.database')">
<LayoutContent :title="(currentDB?.type === 'mysql' ? 'MySQL' : 'MariaDB') + $t('menu.database')">
<template #app v-if="currentDB?.from === 'local'">
<AppStatus
:app-key="appKey"