mirror of https://github.com/1Panel-dev/1Panel
fix: 解决数据库切换时,状态标签显示不正常的问题 (#2177)
parent
ea17c451a6
commit
0c2d971d72
|
@ -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{}) {
|
||||
|
|
|
@ -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"
|
||||
|
|
Loading…
Reference in New Issue