1
0
mirror of https://github.com/1Panel-dev/1Panel.git synced 2025-01-31 22:18:07 +08:00

feat: 删除应用更新状态

This commit is contained in:
zhengkunwang223 2023-02-21 11:34:56 +08:00 committed by zhengkunwang223
parent a8c4d153ea
commit 574f8cc060

View File

@ -40,11 +40,12 @@
</template>
<script lang="ts" setup>
import { FormInstance } from 'element-plus';
import { ref } from 'vue';
import { onBeforeUnmount, ref } from 'vue';
import { App } from '@/api/interface/app';
import { InstalledOp } from '@/api/modules/app';
import i18n from '@/lang';
import { MsgSuccess } from '@/utils/message';
import bus from '../../bus';
let deleteReq = ref({
operate: 'delete',
@ -86,12 +87,17 @@ const submit = async () => {
.then(() => {
handleClose();
MsgSuccess(i18n.global.t('commons.msg.deleteSuccess'));
bus.emit('update', true);
})
.finally(() => {
loading.value = false;
});
};
onBeforeUnmount(() => {
bus.off('update');
});
defineExpose({
acceptParams,
});