Files
tekelanew_acs/acs/nladmin-ui/node_modules/.cache/babel-loader/eae38aacbc10615007e0be45fe07f3ba.json

1 line
3.4 KiB
JSON
Raw Normal View History

2024-12-03 17:40:13 +08:00
{"remainingRequest":"D:\\data\\hanguodoushan\\acs2\\nladmin-ui\\node_modules\\babel-loader\\lib\\index.js!D:\\data\\hanguodoushan\\acs2\\nladmin-ui\\node_modules\\cache-loader\\dist\\cjs.js??ref--0-0!D:\\data\\hanguodoushan\\acs2\\nladmin-ui\\node_modules\\vue-loader\\lib\\index.js??vue-loader-options!D:\\data\\hanguodoushan\\acs2\\nladmin-ui\\src\\components\\Breadcrumb\\index.vue?vue&type=script&lang=js","dependencies":[{"path":"D:\\data\\hanguodoushan\\acs2\\nladmin-ui\\src\\components\\Breadcrumb\\index.vue","mtime":1732871026457},{"path":"D:\\data\\hanguodoushan\\acs2\\nladmin-ui\\babel.config.js","mtime":1732871025888},{"path":"D:\\data\\hanguodoushan\\acs2\\nladmin-ui\\node_modules\\cache-loader\\dist\\cjs.js","mtime":1732872824662},{"path":"D:\\data\\hanguodoushan\\acs2\\nladmin-ui\\node_modules\\babel-loader\\lib\\index.js","mtime":1732872825017},{"path":"D:\\data\\hanguodoushan\\acs2\\nladmin-ui\\node_modules\\cache-loader\\dist\\cjs.js","mtime":1732872824662},{"path":"D:\\data\\hanguodoushan\\acs2\\nladmin-ui\\node_modules\\vue-loader\\lib\\index.js","mtime":1732872825835}],"contextDependencies":[],"result":["\"use strict\";\n\nvar _interopRequireDefault = require(\"D:/data/hanguodoushan/acs2/nladmin-ui/node_modules/@babel/runtime/helpers/interopRequireDefault.js\");\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = void 0;\nrequire(\"core-js/modules/es6.function.name\");\nrequire(\"core-js/modules/es6.string.starts-with\");\nvar _pathToRegexp = _interopRequireDefault(require(\"path-to-regexp\"));\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\nvar _default = exports.default = {\n data: function data() {\n return {\n levelList: null\n };\n },\n watch: {\n $route: function $route(route) {\n // if you go to the redirect page, do not update the breadcrumbs\n if (route.path.startsWith('/redirect/')) {\n return;\n }\n this.getBreadcrumb();\n }\n },\n created: function created() {\n this.getBreadcrumb();\n },\n methods: {\n getBreadcrumb: function getBreadcrumb() {\n // only show routes with meta.title\n var matched = this.$route.matched.filter(function (item) {\n return item.meta && item.meta.title;\n });\n var first = matched[0];\n if (!this.isDashboard(first)) {\n matched = [{\n path: '/dashboard',\n meta: {\n title: this.$t('auto.common.home')\n }\n }].concat(matched);\n }\n this.levelList = matched.filter(function (item) {\n return item.meta && item.meta.title && item.meta.breadcrumb !== false;\n });\n },\n isDashboard: function isDashboard(route) {\n var name = route && route.name;\n if (!name) {\n return false;\n }\n return name.trim().toLocaleLowerCase() === 'Dashboard'.toLocaleLowerCase();\n },\n pathCompile: function pathCompile(path) {\n // To solve this problem https://github.com/PanJiaChen/vue-element-admin/issues/561\n var params = this.$route.params;\n var toPath = _pathToRegexp.default.compile(path);\n return toPath(params);\n },\n handleLink: function handleLink(item) {\n var redirect = item.redirect,\n path = item.path;\n if (redirect) {\n this.$router.push(redirect);\n return;\n }\n this.$router.push(this.pathCompile(path));\n }\n }\n};",null]}