0
0
Fork 0

perf: VnSearchbar

This commit is contained in:
Javier Segarra 2024-04-29 10:12:19 +02:00
parent 1c435725f2
commit 19fcacebc9
2 changed files with 2 additions and 1 deletions

View File

@ -108,6 +108,7 @@ async function search() {
let targetUrl;
if (path.endsWith('/list')) targetUrl = path.replace('/list', `/${targetId}/summary`);
if (path.endsWith('-list')) targetUrl = path.replace('-list', `/${targetId}/summary`);
else if (path.includes(':id')) targetUrl = path.replace(':id', targetId);
await router.push({ path: targetUrl });

View File

@ -1,7 +1,7 @@
import { RouterView } from 'vue-router';
export default {
path: '/item-type',
path: '/item/item-type',
name: 'ItemType',
meta: {
title: 'itemType',