#6891 showRightSideFilterPanel #353

Merged
jorgep merged 48 commits from 6891-showRightSideFilterPanel into dev 2024-05-15 13:39:23 +00:00
1 changed files with 4 additions and 5 deletions
Showing only changes of commit 80336868dc - Show all commits

View File

@ -13,12 +13,11 @@ export default function useRedirect() {
const { matched: matches } = router.currentRoute.value; const { matched: matches } = router.currentRoute.value;
const { path } = matches.at(-1); const { path } = matches.at(-1);
if (data.length === 1) let to = path.replace(/:id.*/, '');
return router.push({
path: path.replace(/\/(list|-list|:id)/, `/${data[0].id}`),
});
router.push({ path: path.replace(/:id.*/, '') }); if (data.length === 1) to = path.replace(/\/(list|-list|:id)/, `/${data[0].id}`);
router.push({ path: to });
}; };
return { navigate }; return { navigate };