{"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// {\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","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: \"/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,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;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,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":[]}