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

1 line
4.6 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// {\n// path: '/index',\n// name: 'Home',\n// component: () => import('@/views/index/index'),\n// meta:{\n// title: '中道救援',\n// }\n// },\n// {\n// path: \"/search\",\n// name: 'Search',\n// component: () => import('@/views/index/search'),\n// meta: {\n// title: '中道救援'\n// }\n// },\n// {\n// path: \"/cancel\",\n// name: 'CancelPage',\n// component: () => import('@/views/index/cancel'),\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","router","mode","beforeEach","to","form","next","meta","title","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: 'Home',\r\n // component: () => import('@/views/index/index'),\r\n // meta:{\r\n // title: '中道救援',\r\n // }\r\n // },\r\n // {\r\n // path: \"/search\",\r\n // name: 'Search',\r\n // component: () => import('@/views/index/search'),\r\n // meta: {\r\n // title: '中道救援'\r\n // }\r\n // },\r\n // {\r\n // path: \"/cancel\",\r\n // name: 'CancelPage',\r\n // component: () => import('@/views/index/cancel'),\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;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;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,IAAIL,SAAS,CAAC;EAC3BM,IAAI,EAAE,SAAS;EACf;EACAJ;AACF,CAAC,CAAC;AACFG,MAAM,CAACE,UAAU,CAAC,UAAUC,EAAE,EAAEC,IAAI,EAAEC,IAAI,EAAE;EAC1C,IAAIF,EAAE,CAACG,IAAI,CAACC,KAAK,EAAE;IACjBC,QAAQ,CAACD,KAAK,GAAGJ,EAAE,CAACG,IAAI,CAACC,KAAK;EAChC;EACAF,IAAI,CAAC,CAAC;AACR,CAAC,CAAC;AACF,eAAeL,MAAM"},"metadata":{},"sourceType":"module","externalDependencies":[]}