8627-devToTest #1421

Merged
alexm merged 768 commits from 8627-devToTest into test 2025-02-18 12:37:37 +00:00
1 changed files with 3 additions and 2 deletions
Showing only changes of commit a46d3affde - Show all commits

View File

@ -28,10 +28,11 @@ const arrayData = useArrayData(props.dataKey, {
});
onBeforeMount(async () => {
const route = router.currentRoute.value;
try {
await fetchData(router.currentRoute.value.params.id);
await fetchData(route.params.id);
} catch {
const { matched: matches } = router.currentRoute.value;
const { matched: matches } = route;
const { path } = matches.at(-1);
router.push({ path: path.replace(/:id.*/, '') });
}