feat: rotate flow

This commit is contained in:
Methapon2001 2024-06-25 16:05:51 +07:00
parent 44ae39907e
commit 5fa910bcb9

View file

@ -23,6 +23,7 @@ import InfoForm from 'src/components/02_personnel-management/InfoForm.vue';
import { BranchWithChildren, BranchCreate } from 'stores/branch/types';
import { watch } from 'vue';
import { useI18n } from 'vue-i18n';
import useFlowStore from 'src/stores/flow';
const { t } = useI18n();
@ -75,6 +76,7 @@ const inputFile = (() => {
})();
const branchStore = useBranchStore();
const flowStore = useFlowStore();
const { locale } = useI18n();
const { data: branchData } = storeToRefs(branchStore);
@ -92,6 +94,8 @@ const treeData = computed(() => {
onMounted(async () => {
await branchStore.fetchList({ pageSize: 99999 });
flowStore.rotate();
const _stats = await branchStore.stats();
if (_stats) {
@ -354,6 +358,7 @@ async function onSubmit() {
},
];
}
flowStore.rotate();
}
function changeTitle(