refactor: get value id by url
This commit is contained in:
parent
fd9e3905ea
commit
de4b6f9ebd
1 changed files with 4 additions and 0 deletions
|
|
@ -77,6 +77,10 @@ defineEmits<{
|
|||
}>();
|
||||
|
||||
onMounted(async () => {
|
||||
const url = window.location.href;
|
||||
const parts = url.split('/');
|
||||
customerBranchFormState.value.currentCustomerId = parts[4];
|
||||
|
||||
await fetchList();
|
||||
});
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue