Item types #319
|
@ -108,6 +108,7 @@ async function search() {
|
||||||
let targetUrl;
|
let targetUrl;
|
||||||
|
|
||||||
if (path.endsWith('/list')) targetUrl = path.replace('/list', `/${targetId}/summary`);
|
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);
|
else if (path.includes(':id')) targetUrl = path.replace(':id', targetId);
|
||||||
|
|
||||||
await router.push({ path: targetUrl });
|
await router.push({ path: targetUrl });
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
import { RouterView } from 'vue-router';
|
import { RouterView } from 'vue-router';
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
path: '/item-type',
|
path: '/item/item-type',
|
||||||
name: 'ItemType',
|
name: 'ItemType',
|
||||||
meta: {
|
meta: {
|
||||||
title: 'itemType',
|
title: 'itemType',
|
||||||
|
|
Loading…
Reference in New Issue