1
0
mirror of https://github.com/1Panel-dev/1Panel.git synced 2025-01-19 16:29:17 +08:00

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 { 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{}) {

View File

@ -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"