File tree Expand file tree Collapse file tree
web/src/views/backend/module Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11import { ElNotification } from 'element-plus'
2+ import { isArray } from 'lodash-es'
23import { state } from './store'
34import { moduleInstallState , type moduleState } from './types'
45import {
@@ -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 }
You can’t perform that action at this time.
0 commit comments