1
0
Fork 0
management/front/dkha-web-sz-main/node_modules/.cache/babel-loader/954bcd9f6f66a1e07560382cdc7...

1 line
20 KiB
JSON
Raw Normal View History

2023-12-18 13:12:25 +08:00
{"remainingRequest":"C:\\Users\\27446\\Desktop\\up\\front\\dkha-web-sz-main\\node_modules\\babel-loader\\lib\\index.js!C:\\Users\\27446\\Desktop\\up\\front\\dkha-web-sz-main\\src\\router\\index.js","dependencies":[{"path":"C:\\Users\\27446\\Desktop\\up\\front\\dkha-web-sz-main\\src\\router\\index.js","mtime":1614735254000},{"path":"C:\\Users\\27446\\Desktop\\up\\front\\dkha-web-sz-main\\node_modules\\cache-loader\\dist\\cjs.js","mtime":499162500000},{"path":"C:\\Users\\27446\\Desktop\\up\\front\\dkha-web-sz-main\\node_modules\\babel-loader\\lib\\index.js","mtime":499162500000}],"contextDependencies":[],"result":["import \"core-js/modules/es7.object.get-own-property-descriptors\";\nimport \"core-js/modules/web.dom.iterable\";\nimport \"core-js/modules/es6.object.keys\";\nimport _defineProperty from \"C:\\\\Users\\\\27446\\\\Desktop\\\\up\\\\front\\\\dkha-web-sz-main\\\\node_modules\\\\@babel\\\\runtime-corejs2/helpers/esm/defineProperty\";\nimport \"core-js/modules/es6.function.name\";\nimport \"core-js/modules/es6.regexp.replace\";\n\nfunction ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; }\n\nfunction _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(source, true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(source).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }\n\nimport Vue from 'vue';\nimport Router from 'vue-router';\nimport http from '@/utils/request';\nimport { isURL } from '@/utils/validate';\nimport { getPersonRegion, getDictDataListAll } from '@/utils/index';\nVue.use(Router); // 页面路由(独立页面)\n\nexport var pageRoutes = [{\n path: '/404',\n component: function component() {\n return import('@/views/pages/404');\n },\n name: '404',\n meta: {\n title: '404未找到'\n },\n beforeEnter: function beforeEnter(to, from, next) {\n // 拦截处理特殊业务场景\n // 如果, 重定向路由包含__双下划线, 为临时添加路由\n if (/__.*/.test(to.redirectedFrom)) {\n return next(to.redirectedFrom.replace(/__.*/, ''));\n }\n\n next();\n }\n}, {\n path: '/login',\n component: function component() {\n return import('@/views/pages/login');\n },\n name: 'login',\n meta: {\n title: '登录'\n }\n}]; // 模块路由(基于主入口布局页面)\n\nexport var moduleRoutes = {\n path: '/',\n component: function component() {\n return import('@/views/main');\n },\n name: 'main',\n redirect: {\n name: 'home'\n },\n meta: {\n title: '主入口布局'\n },\n children: [{\n path: '/home',\n component: function component() {\n return import('@/views/modules/home');\n },\n name: 'home',\n meta: {\n title: '首页',\n isTab: true\n }\n }]\n};\nexport function addDynamicRoute(routeParams, router) {\n // 组装路由名称, 并判断是否已添加, 如是: 则直接跳转\n var routeName = routeParams.routeName;\n var dynamicRoute = window.SITE_CONFIG['dynamicRoutes'].filter(function (item) {\n return item.name === routeName;\n })[0];\n\n if (dynamicRoute) {\n return router.push({\n name: routeName,\n params: routeParams.params\n });\n } // 否则: 添加并全局变量保存, 再跳转\n\n\n dynamicRoute = {\n path: routeName,\n component: function component() {\n return import(\"@/views/modules/\".concat(routeParams.path));\n },\n name: routeName,\n meta: _objectSpread({}, window.SITE_CONFIG['contentTabDefault'], {\n menuId: routeParams.menuId,\n