Skip to content

Commit

Permalink
fix:修复连续安装模块时终端命令可能执行失败的问题
Browse files Browse the repository at this point in the history
  • Loading branch information
build-admin committed Jun 27, 2024
1 parent e5e77b4 commit 291d3f4
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion web/src/views/backend/module/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ import { moduleInstallState, type moduleState } from './types'
import { uuid } from '/@/utils/random'
import { fullUrl } from '/@/utils/common'
import type { UserInfo } from '/@/stores/interface'
import { closeHotUpdate } from '/@/utils/vite'
import router from '/@/router/index'
import { i18n } from '/@/lang/index'

export const loadData = () => {
Expand Down Expand Up @@ -311,7 +313,11 @@ const terminalTaskExecComplete = (res: number, type: string) => {
terminal.toggle(true)
state.common.dependInstallState = 'fail'
}
onRefreshTableData()

if (router.currentRoute.value.name === 'moduleStore/moduleStore') {
onRefreshTableData()
closeHotUpdate('modules')
}
}

export const onDisable = (confirmConflict = false) => {
Expand Down

0 comments on commit 291d3f4

Please sign in to comment.