mirror of
https://gitee.com/fit2cloud-feizhiyun/1Panel.git
synced 2024-12-06 05:48:18 +08:00
parent
e3d87c542d
commit
4504a8b188
@ -99,11 +99,15 @@ func (u *DashboardService) LoadBaseInfo(ioOption string, netOption string) (*dto
|
||||
return nil, err
|
||||
}
|
||||
baseInfo.AppInstalledNumber = len(appInstall)
|
||||
dbs, err := mysqlRepo.List()
|
||||
postgresqlDbs, err := postgresqlRepo.List()
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
baseInfo.DatabaseNumber = len(dbs)
|
||||
mysqlDbs, err := mysqlRepo.List()
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
baseInfo.DatabaseNumber = len(mysqlDbs) + len(postgresqlDbs)
|
||||
website, err := websiteRepo.GetBy()
|
||||
if err != nil {
|
||||
return nil, err
|
||||
|
@ -377,6 +377,7 @@ const message = {
|
||||
logout: 'Logout',
|
||||
},
|
||||
database: {
|
||||
all: 'All',
|
||||
manage: 'Management',
|
||||
database: 'database',
|
||||
deleteBackupHelper: 'Delete database backups simultaneously',
|
||||
|
@ -370,6 +370,7 @@ const message = {
|
||||
logout: '退出登錄',
|
||||
},
|
||||
database: {
|
||||
all: '全部',
|
||||
manage: '管理',
|
||||
database: '數據庫',
|
||||
deleteBackupHelper: '同時刪除數據庫備份',
|
||||
|
@ -371,6 +371,7 @@ const message = {
|
||||
logout: '退出登录',
|
||||
},
|
||||
database: {
|
||||
all: '全部',
|
||||
manage: '管理',
|
||||
database: '数据库',
|
||||
deleteBackupHelper: '同时删除数据库备份',
|
||||
|
@ -53,7 +53,7 @@
|
||||
</div>
|
||||
</el-col>
|
||||
<el-col :span="6">
|
||||
<span>{{ $t('menu.database') }}</span>
|
||||
<span>{{ $t('menu.database') }} - {{ $t('database.all') }}</span>
|
||||
<div class="count">
|
||||
<span @click="goRouter('/databases')">{{ baseInfo?.databaseNumber }}</span>
|
||||
</div>
|
||||
|
Loading…
Reference in New Issue
Block a user