Conditions | 1 |
Total Lines | 38 |
Code Lines | 26 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | import VueRouter from 'vue-router'; |
||
3 | export function createRouter() { |
||
4 | return new VueRouter({ |
||
5 | routes: [{ |
||
6 | name: 'sw.product.detail', |
||
7 | path: '/sw/product/detail/:{id}', |
||
8 | meta: { |
||
9 | $module: { |
||
10 | entity: 'product' |
||
11 | }, |
||
12 | appSystem: { |
||
13 | view: 'detail' |
||
14 | } |
||
15 | } |
||
16 | }, { |
||
17 | name: 'sw.product.list', |
||
18 | path: '/sw/product/list', |
||
19 | meta: { |
||
20 | $module: { |
||
21 | entity: 'product' |
||
22 | }, |
||
23 | appSystem: { |
||
24 | view: 'list' |
||
25 | } |
||
26 | } |
||
27 | }, { |
||
28 | name: 'sw.order.detail', |
||
29 | path: '/sw/order/detail', |
||
30 | meta: { |
||
31 | $module: { |
||
32 | entity: 'order' |
||
33 | }, |
||
34 | appSystem: { |
||
35 | view: 'list' |
||
36 | } |
||
37 | } |
||
38 | }] |
||
39 | }); |
||
40 | } |
||
41 | |||
65 |
This checks looks for references to variables that have not been declared. This is most likey a typographical error or a variable has been renamed.
To learn more about declaring variables in Javascript, see the MDN.