Skip to content

Commit

Permalink
fix(market): close remove dialog on install, fix #300
Browse files Browse the repository at this point in the history
  • Loading branch information
shigma committed Jan 29, 2024
1 parent 42de242 commit 9061bf8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugins/market/client/components/install.vue
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,6 @@
<el-dialog v-model="confirmRemoveConfig" destroy-on-close>
检测到你正在卸载一个已配置的插件,是否同时删除其配置?
<template #footer>
<el-button @click="confirmRemoveConfig = false">取消</el-button>
<el-button type="danger" @click="installDep('', false, true)">删除</el-button>
<el-button type="primary" @click="installDep('', false, false)">保留</el-button>
</template>
Expand Down Expand Up @@ -130,6 +129,7 @@ function installDep(version: string, checkConfig = false, removeConfig = false)
confirmRemoveConfig.value = true
return
}
confirmRemoveConfig.value = false
versions[target] = version
install(versions, async () => {
if (workspace.value) return
Expand Down

0 comments on commit 9061bf8

Please sign in to comment.