management/front/dkha-web-sz-main/node_modules/.cache/babel-loader/8ac2ed072e3b686f7c9a786b02f...

1 line
13 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\\node_modules\\cache-loader\\dist\\cjs.js??ref--0-0!C:\\Users\\27446\\Desktop\\up\\front\\dkha-web-sz-main\\node_modules\\vue-loader\\lib\\index.js??vue-loader-options!C:\\Users\\27446\\Desktop\\up\\front\\dkha-web-sz-main\\src\\views\\main.vue?vue&type=script&lang=js&","dependencies":[{"path":"C:\\Users\\27446\\Desktop\\up\\front\\dkha-web-sz-main\\src\\views\\main.vue","mtime":1620711691794},{"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},{"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\\vue-loader\\lib\\index.js","mtime":499162500000}],"contextDependencies":[],"result":["import \"core-js/modules/es7.object.get-own-property-descriptors\";\nimport \"core-js/modules/es6.object.keys\";\nimport \"core-js/modules/es6.regexp.split\";\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/web.dom.iterable\";\nimport \"core-js/modules/es6.string.iterator\";\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\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\nimport MainNavbar from \"./main-navbar\";\nimport MainSidebar from \"./main-sidebar\";\nimport MainContent from \"./main-content\";\nimport MainThemeTools from \"./main-theme-tools\";\nimport debounce from 'lodash/debounce';\nexport default {\n provide: function provide() {\n return {\n // 刷新\n refresh: function refresh() {\n var _this = this;\n\n this.$store.state.contentIsNeedRefresh = true;\n this.$nextTick(function () {\n _this.$store.state.contentIsNeedRefresh = false;\n });\n }\n };\n },\n data: function data() {\n return {\n loading: true\n };\n },\n components: {\n MainNavbar: MainNavbar,\n MainSidebar: MainSidebar,\n MainContent: MainContent,\n MainThemeTools: MainThemeTools\n },\n watch: {\n $route: 'routeHandle'\n },\n created: function created() {\n var _this2 = this;\n\n this.windowResizeHandle();\n this.routeHandle(this.$route);\n Promise.all([this.getUserInfo(), this.getPermissions()]).then(function () {\n _this2.loading = false;\n });\n },\n methods: {\n // 窗口改变大小\n windowResizeHandle: function windowResizeHandle() {\n var _this3 = this;\n\n this.$store.state.sidebarFold = document.documentElement['clientWidth'] <= 992 || false;\n window.addEventListener('resize', debounce(function () {\n _this3.$store.state.sidebarFold = document.documentElement['clientWidth'] <= 992 || false;\n }, 150));\n },\n // 路由, 监听\n routeHandle: function routeHandle(route) {\n