Files
supplier-dispatch-h5/node_modules/.cache/babel-loader/c97daa6bc33b37cfa958d6a7a89c3ca6c8a1654529cc7ee276b81c780c6848f3.json
2023-08-11 10:45:20 +08:00

1 line
4.9 KiB
JSON

{"ast":null,"code":"import Vue from \"vue\";\nimport VueRouter from \"vue-router\";\nVue.use(VueRouter);\nconst routes = [{\n path: '/',\n redirect: '/index'\n}, {\n path: '/index',\n name: 'toDoList',\n component: () => import('@/views/index/toDoList'),\n meta: {\n title: '代办事项'\n }\n}, {\n path: \"/reporting\",\n name: 'reportingView',\n component: () => import('@/views/index/reporting.vue'),\n meta: {\n title: '报备'\n }\n}, {\n path: \"/workOrderDetail\",\n name: 'workOrderDetail',\n component: () => import('@/views/index/workOrderDetail'),\n meta: {\n title: '工单详情'\n }\n}\n// {\n// path: \"/rescue\",\n// name: 'rescuePage',\n// component: () => import('@/views/index/rescue'),\n// meta: {\n// title: '道路救援'\n// }\n// },\n// {\n// path: \"/address\",\n// name: 'addressMap',\n// component: () => import('@/views/index/addressMap'),\n// meta: {\n// title: '道路救援'\n// }\n// },\n// {\n// path: \"/pay\",\n// name: 'payPage',\n// component: () => import('@/views/index/pay'),\n// meta: {\n// title: '道路救援'\n// }\n// },\n// {\n// path: \"/orderStatus\",\n// name: 'orderStatus',\n// component: () => import('@/views/index/orderStatus'),\n// meta: {\n// title: '道路救援'\n// }\n// },\n];\n\nconst router = new VueRouter({\n mode: 'history',\n // base: process.env.BASE_URL,\n routes\n});\nrouter.beforeEach(function (to, form, next) {\n if (to.meta.title) {\n document.title = to.meta.title;\n }\n next();\n});\nexport default router;","map":{"version":3,"names":["Vue","VueRouter","use","routes","path","redirect","name","component","meta","title","router","mode","beforeEach","to","form","next","document"],"sources":["C:/Users/zhouxueli/Desktop/scheduling-app/src/router/index.js"],"sourcesContent":["import Vue from \"vue\";\r\nimport VueRouter from \"vue-router\";\r\nVue.use(VueRouter);\r\n\r\nconst routes = [\r\n {\r\n path: '/',\r\n redirect: '/index'\r\n },\r\n {\r\n path: '/index',\r\n name: 'toDoList',\r\n component: () => import('@/views/index/toDoList'),\r\n meta:{\r\n title: '代办事项',\r\n }\r\n },\r\n {\r\n path: \"/reporting\",\r\n name: 'reportingView',\r\n component: () => import('@/views/index/reporting.vue'),\r\n meta: {\r\n title: '报备'\r\n }\r\n },\r\n {\r\n path: \"/workOrderDetail\",\r\n name: 'workOrderDetail',\r\n component: () => import('@/views/index/workOrderDetail'),\r\n meta: {\r\n title: '工单详情'\r\n }\r\n },\r\n // {\r\n // path: \"/rescue\",\r\n // name: 'rescuePage',\r\n // component: () => import('@/views/index/rescue'),\r\n // meta: {\r\n // title: '道路救援'\r\n // }\r\n // },\r\n // {\r\n // path: \"/address\",\r\n // name: 'addressMap',\r\n // component: () => import('@/views/index/addressMap'),\r\n // meta: {\r\n // title: '道路救援'\r\n // }\r\n // },\r\n // {\r\n // path: \"/pay\",\r\n // name: 'payPage',\r\n // component: () => import('@/views/index/pay'),\r\n // meta: {\r\n // title: '道路救援'\r\n // }\r\n // },\r\n // {\r\n // path: \"/orderStatus\",\r\n // name: 'orderStatus',\r\n // component: () => import('@/views/index/orderStatus'),\r\n // meta: {\r\n // title: '道路救援'\r\n // }\r\n // },\r\n ]\r\n\r\nconst router = new VueRouter({\r\n mode: 'history',\r\n // base: process.env.BASE_URL,\r\n routes\r\n})\r\nrouter.beforeEach(function (to, form, next) {\r\n if (to.meta.title) {\r\n document.title = to.meta.title\r\n }\r\n next()\r\n})\r\nexport default router\r\n"],"mappings":"AAAA,OAAOA,GAAG,MAAM,KAAK;AACrB,OAAOC,SAAS,MAAM,YAAY;AAClCD,GAAG,CAACE,GAAG,CAACD,SAAS,CAAC;AAElB,MAAME,MAAM,GAAG,CACX;EACEC,IAAI,EAAE,GAAG;EACTC,QAAQ,EAAE;AACZ,CAAC,EACD;EACED,IAAI,EAAE,QAAQ;EACdE,IAAI,EAAE,UAAU;EAChBC,SAAS,EAAEA,CAAA,KAAM,MAAM,CAAC,wBAAwB,CAAC;EACjDC,IAAI,EAAC;IACHC,KAAK,EAAE;EACT;AACF,CAAC,EACD;EACEL,IAAI,EAAE,YAAY;EAClBE,IAAI,EAAE,eAAe;EACrBC,SAAS,EAAEA,CAAA,KAAM,MAAM,CAAC,6BAA6B,CAAC;EACtDC,IAAI,EAAE;IACJC,KAAK,EAAE;EACT;AACF,CAAC,EACD;EACEL,IAAI,EAAE,kBAAkB;EACxBE,IAAI,EAAE,iBAAiB;EACvBC,SAAS,EAAEA,CAAA,KAAM,MAAM,CAAC,+BAA+B,CAAC;EACxDC,IAAI,EAAE;IACJC,KAAK,EAAE;EACT;AACF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAAA,CACD;;AAEH,MAAMC,MAAM,GAAG,IAAIT,SAAS,CAAC;EAC3BU,IAAI,EAAE,SAAS;EACf;EACAR;AACF,CAAC,CAAC;AACFO,MAAM,CAACE,UAAU,CAAC,UAAUC,EAAE,EAAEC,IAAI,EAAEC,IAAI,EAAE;EAC1C,IAAIF,EAAE,CAACL,IAAI,CAACC,KAAK,EAAE;IACjBO,QAAQ,CAACP,KAAK,GAAGI,EAAE,CAACL,IAAI,CAACC,KAAK;EAChC;EACAM,IAAI,CAAC,CAAC;AACR,CAAC,CAAC;AACF,eAAeL,MAAM"},"metadata":{},"sourceType":"module","externalDependencies":[]}