feat: rotate log id

This commit is contained in:
Methapon2001 2024-06-26 17:03:49 +07:00
parent f46b7868fa
commit 83831988dd
3 changed files with 29 additions and 2 deletions

View file

@ -293,7 +293,6 @@ async function triggerEdit(
}
function triggerDelete(id: string) {
fetchBranchById(id);
if (id) {
dialog({
color: 'negative',
@ -306,6 +305,7 @@ function triggerDelete(id: string) {
await branchStore.deleteById(id);
await branchStore.fetchList({ pageSize: 99999 });
modalDrawer.value = false;
flowStore.rotate();
},
cancel: () => {},
});
@ -954,7 +954,7 @@ watch(locale, () => {
:editData="() => drawerEdit()"
:submit="() => onSubmit()"
:delete-data="() => triggerDelete(currentEdit.id)"
:close="() => (modalDrawer = false)"
:close="() => ((modalDrawer = false), flowStore.rotate())"
:statusBranch="formData.status"
>
<template #info>