refactor: get value id by url

This commit is contained in:
Net 2024-08-13 16:36:25 +07:00
parent fd9e3905ea
commit de4b6f9ebd

View file

@ -77,6 +77,10 @@ defineEmits<{
}>();
onMounted(async () => {
const url = window.location.href;
const parts = url.split('/');
customerBranchFormState.value.currentCustomerId = parts[4];
await fetchList();
});