Skip to content

Commit e32ee81

Browse files
committed
fix:修复本地自建模块的标题不显示的问题
1 parent ee46538 commit e32ee81

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

web/src/views/backend/module/index.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import { ElNotification } from 'element-plus'
2+
import { isArray } from 'lodash-es'
23
import { state } from './store'
34
import { moduleInstallState, type moduleState } from './types'
45
import {
@@ -104,9 +105,16 @@ const getModules = () => {
104105
const idx = state.installedModuleUids.indexOf(item.uid)
105106
if (idx !== -1) {
106107
item.state = state.installedModule[idx].state
108+
item.title = state.installedModule[idx].title
107109
item.version = state.installedModule[idx].version
108110
item.website = state.installedModule[idx].website
109111
item.stateTag = moduleStatus(item.state)
112+
113+
if (!isArray(item.tags)) item.tags = []
114+
item.tags.push({
115+
name: `${i18n.global.t('module.installed')} v${state.installedModule[idx].version}`,
116+
type: 'primary',
117+
})
110118
} else {
111119
item.state = 0
112120
}

0 commit comments

Comments
 (0)