{"remainingRequest":"D:\\jenkins\\workspace\\damDance-fvue\\node_modules\\thread-loader\\dist\\cjs.js!D:\\jenkins\\workspace\\damDance-fvue\\node_modules\\babel-loader\\lib\\index.js!D:\\jenkins\\workspace\\damDance-fvue\\node_modules\\eslint-loader\\index.js??ref--13-0!D:\\jenkins\\workspace\\damDance-fvue\\src\\main.js","dependencies":[{"path":"D:\\jenkins\\workspace\\damDance-fvue\\src\\main.js","mtime":1696817249044},{"path":"D:\\jenkins\\workspace\\damDance-fvue\\node_modules\\cache-loader\\dist\\cjs.js","mtime":499162500000},{"path":"D:\\jenkins\\workspace\\damDance-fvue\\node_modules\\thread-loader\\dist\\cjs.js","mtime":499162500000},{"path":"D:\\jenkins\\workspace\\damDance-fvue\\node_modules\\babel-loader\\lib\\index.js","mtime":315532800000},{"path":"D:\\jenkins\\workspace\\damDance-fvue\\node_modules\\eslint-loader\\index.js","mtime":499162500000}],"contextDependencies":[],"result":["import \"core-js/modules/es6.regexp.replace\";\nimport 'babel-polyfill';\nimport Vue from 'vue';\nimport App from \"./App.vue\";\nimport store from \"./store\";\nimport router from \"./router\";\nimport '@/assets/css/element-custom.scss';\nimport ElementUI from 'element-ui';\nimport _i18n from '@/lang/index.js';\nimport moment from 'moment'; //日期格式化插件\n\nimport '@/directive.js';\nimport req from '@/request.js';\nimport deepmerge from 'deepmerge';\nimport validate from '@/validate.js';\nimport dict from '@/lang/dict.js';\nimport utils from '@/utils.js'; //引入字典\n\nimport DictSelect from '@/components/dict/DictSelect.vue';\nimport dictUtils from '@/components/dict/DictSelectUtils'; // 引入状态颜色组件\n\nimport StatusByColor from '@/components/common/StatusByColor.vue'; //侧边导航事件\n\nimport eventBus from \"./api/bus.js\";\nVue.use(eventBus); //菜单图标\n\nimport svgIcon from '@/components/global/svgIcon.vue';\nVue.config.debug = true;\nVue.prototype.$http = req; // 字符串解析和序列化字符串\n\nimport qs from 'qs';\nVue.prototype.qs = qs;\nVue.use(ElementUI, {\n i18n: function i18n(key, value) {\n return _i18n.t(key, value);\n } // size: 'small'\n\n}); // 列头自适应\n\nElementUI.TableColumn.props.minWidth = {\n default: function _default() {\n if (this.label) {\n //将双字节字符替换为两个a,14为当前font-size 一个a为7.8px 一个汉字为14px 单元格左右padding为20px\n return this.label.replace(/[^\\x00-\\xff]/g, 'aa').length * 7.8 + 20 + 'px';\n }\n }\n}; // 拖拽指令\n\nimport '@/dialog'; // 注册全局组件\n\nVue.component('svgIcon', svgIcon);\nVue.component('DictSelect', DictSelect);\nVue.component('StatusByColor', StatusByColor);\nwindow.app = new Vue({\n store: store,\n router: router,\n i18n: _i18n,\n render: function render(createElement) {\n var _this = this;\n\n if ('-ms-scroll-limit' in document.documentElement.style && '-ms-ime-align' in document.documentElement.style) {\n window.addEventListener('hashchange', function () {\n var currentPath = window.location.hash.slice(1);\n\n if (_this.$route.path !== currentPath) {\n _this.$router.push(currentPath);\n }\n }, false);\n }\n\n return createElement(App);\n }\n}).$mount('#root');\nvar validateLocal = localStorage.getItem('lang');\nvar currentLocal = validateLocal || 'zh-CN'; // app.$validator.locale = currentLocal\n\nif (app.$validator) {\n for (var rule in validate) {\n app.$validator.rules[rule] = validate[rule];\n }\n\n app.$validator.dictionary.container = deepmerge(dict, app.$validator.dictionary.container, {\n clone: true\n });\n} // 日期控件格式化\n\n\nif ('zh-CN' == currentLocal) {\n moment.locale('zh-cn');\n} else {\n moment.locale('en');\n}\n\nmoment.locale('zh-cn'); // el-tooltip 默认显示\n\nVue.prototype.$tooltipplacement = 'bottom'; // 默认获取当前时间并格式化为yyyy-MM-dd\n\nVue.prototype.getDate = function () {\n var nowDate = new Date();\n var date = {\n year: nowDate.getFullYear(),\n month: nowDate.getMonth() + 1,\n date: nowDate.getDate()\n };\n var newmonth = date.month >= 10 ? date.month : '0' + date.month;\n var day = date.date >= 10 ? date.date : '0' + date.date;\n date = date.year + '-' + newmonth + '-' + day;\n return date;\n};",null]}