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

@ -28,8 +28,11 @@ import DrawerInfo from 'src/components/DrawerInfo.vue';
import InfoForm from 'src/components/02_personnel-management/InfoForm.vue';
import { computed } from 'vue';
import { useI18n } from 'vue-i18n';
import useFlowStore from 'src/stores/flow';
const { locale } = useI18n();
const flowStore = useFlowStore();
const userStore = useUserStore();
const branchStore = useBranchStore();
const adrressStore = useAddressStore();
@ -235,6 +238,7 @@ function onClose() {
statusToggle.value = true;
Object.assign(formData.value, defaultFormData);
mapUserType(selectorLabel.value);
flowStore.rotate();
}
async function onSubmit() {
@ -361,6 +365,7 @@ async function onSubmit() {
},
});
}
flowStore.rotate();
}
async function onDelete(id: string) {
@ -379,6 +384,7 @@ async function onDelete(id: string) {
userType: selectorLabel.value ?? undefined,
});
typeStats.value = await userStore.typeStats();
flowStore.rotate();
},
});
}
@ -500,6 +506,7 @@ onMounted(async () => {
if (res) {
userStats.value = res;
}
flowStore.rotate();
});
watch(