mirror of
https://github.com/1Panel-dev/1Panel.git
synced 2025-01-19 08:19:15 +08:00
fix: 解决数据库切换时,状态标签显示不正常的问题 (#2177)
This commit is contained in:
parent
ea17c451a6
commit
0c2d971d72
@ -145,7 +145,7 @@ func (a *AppInstallService) CheckExist(req request.AppInstalledInfo) (*response.
|
|||||||
if len(req.Name) == 0 {
|
if len(req.Name) == 0 {
|
||||||
appInstall, _ = appInstallRepo.GetFirst(appInstallRepo.WithAppId(app.ID))
|
appInstall, _ = appInstallRepo.GetFirst(appInstallRepo.WithAppId(app.ID))
|
||||||
} else {
|
} 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{}) {
|
if reflect.DeepEqual(appInstall, model.AppInstall{}) {
|
||||||
|
@ -10,7 +10,7 @@
|
|||||||
</div>
|
</div>
|
||||||
</el-card>
|
</el-card>
|
||||||
</div>
|
</div>
|
||||||
<LayoutContent :title="'MySQL ' + $t('menu.database')">
|
<LayoutContent :title="(currentDB?.type === 'mysql' ? 'MySQL' : 'MariaDB') + $t('menu.database')">
|
||||||
<template #app v-if="currentDB?.from === 'local'">
|
<template #app v-if="currentDB?.from === 'local'">
|
||||||
<AppStatus
|
<AppStatus
|
||||||
:app-key="appKey"
|
:app-key="appKey"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user