refactor: routing
This commit is contained in:
parent
e705821d89
commit
921b6c6106
2 changed files with 10 additions and 2 deletions
|
|
@ -189,7 +189,10 @@ function triggerQuotationDialog(opts: {
|
|||
quotationId?: string;
|
||||
branchId?: string;
|
||||
}) {
|
||||
const url = new URL('/quotation/add-quotation', window.location.origin);
|
||||
const url = new URL(
|
||||
`/quotation/${opts.statusDialog === 'create' ? 'add' : 'view'}`,
|
||||
window.location.origin,
|
||||
);
|
||||
|
||||
localStorage.setItem(
|
||||
'new-quotation',
|
||||
|
|
|
|||
|
|
@ -93,10 +93,15 @@ const routes: RouteRecordRaw[] = [
|
|||
},
|
||||
|
||||
{
|
||||
path: '/quotation/add-quotation',
|
||||
path: '/quotation/add',
|
||||
name: 'QuotationAdd',
|
||||
component: () => import('pages/05_quotation/QuotationForm.vue'),
|
||||
},
|
||||
{
|
||||
path: '/quotation/view',
|
||||
name: 'QuotationView',
|
||||
component: () => import('pages/05_quotation/QuotationForm.vue'),
|
||||
},
|
||||
{
|
||||
path: '/quotation/document-view',
|
||||
name: 'QuotationDocumentView',
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue