{"remainingRequest":"D:\\HTC\\program\\善行少年\\security-enterprise-admin\\node_modules\\babel-loader\\lib\\index.js!D:\\HTC\\program\\善行少年\\security-enterprise-admin\\node_modules\\cache-loader\\dist\\cjs.js??ref--0-0!D:\\HTC\\program\\善行少年\\security-enterprise-admin\\node_modules\\vue-loader\\lib\\index.js??vue-loader-options!D:\\HTC\\program\\善行少年\\security-enterprise-admin\\src\\views\\pages\\login.vue?vue&type=script&lang=js","dependencies":[{"path":"D:\\HTC\\program\\善行少年\\security-enterprise-admin\\src\\views\\pages\\login.vue","mtime":1760164952963},{"path":"D:\\HTC\\program\\善行少年\\security-enterprise-admin\\babel.config.js","mtime":1581948662000},{"path":"D:\\HTC\\program\\善行少年\\security-enterprise-admin\\node_modules\\cache-loader\\dist\\cjs.js","mtime":499162500000},{"path":"D:\\HTC\\program\\善行少年\\security-enterprise-admin\\node_modules\\babel-loader\\lib\\index.js","mtime":456789000000},{"path":"D:\\HTC\\program\\善行少年\\security-enterprise-admin\\node_modules\\cache-loader\\dist\\cjs.js","mtime":499162500000},{"path":"D:\\HTC\\program\\善行少年\\security-enterprise-admin\\node_modules\\vue-loader\\lib\\index.js","mtime":499162500000}],"contextDependencies":[],"result":["import \"core-js/modules/es6.regexp.replace\";\nimport Cookies from 'js-cookie';\nimport debounce from 'lodash/debounce';\nimport { messages } from '@/i18n';\nimport { getUUID } from '@/utils';\nexport default {\n data: function data() {\n return {\n i18nMessages: messages,\n captchaPath: '',\n dataForm: {\n username: '',\n password: '',\n uuid: '',\n captcha: ''\n }\n };\n },\n computed: {\n dataRule: function dataRule() {\n return {\n username: [{\n required: true,\n message: this.$t('validate.required'),\n trigger: 'blur'\n }],\n password: [{\n required: true,\n message: this.$t('validate.required'),\n trigger: 'blur'\n }],\n captcha: [{\n required: true,\n message: this.$t('validate.required'),\n trigger: 'blur'\n }]\n };\n }\n },\n created: function created() {\n this.getCaptcha();\n },\n methods: {\n // 获取验证码\n getCaptcha: function getCaptcha() {\n this.dataForm.uuid = getUUID();\n this.captchaPath = \"\".concat(window.SITE_CONFIG['apiURL'], \"/captcha?uuid=\").concat(this.dataForm.uuid);\n },\n // 表单提交\n dataFormSubmitHandle: debounce(function () {\n var _this = this;\n this.$refs['dataForm'].validate(function (valid) {\n if (!valid) {\n return false;\n }\n _this.$http.post('/login', _this.dataForm).then(function (_ref) {\n var res = _ref.data;\n if (res.code !== 0) {\n _this.getCaptcha();\n return _this.$message.error(res.msg);\n }\n Cookies.set('token', res.data.token);\n _this.$router.replace({\n name: 'home'\n });\n }).catch(function () {});\n });\n }, 1000, {\n 'leading': true,\n 'trailing': false\n })\n }\n};",{"version":3,"names":["Cookies","debounce","messages","getUUID","data","i18nMessages","captchaPath","dataForm","username","password","uuid","captcha","computed","dataRule","required","message","$t","trigger","created","getCaptcha","methods","concat","window","SITE_CONFIG","dataFormSubmitHandle","_this","$refs","validate","valid","$http","post","then","_ref","res","code","$message","error","msg","set","token","$router","replace","name","catch"],"sources":["src/views/pages/login.vue"],"sourcesContent":["\r\n \r\n
\r\n
\r\n \r\n \r\n
{{ $t('login.title') }}
\r\n
\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n
\r\n \r\n \r\n \r\n \r\n {{ $t('login.title') }}\r\n \r\n \r\n
\r\n \r\n \r\n
\r\n
\r\n\r\n\r\n\r\n"],"mappings":";AAuDA,OAAAA,OAAA;AACA,OAAAC,QAAA;AACA,SAAAC,QAAA;AACA,SAAAC,OAAA;AACA;EACAC,IAAA,WAAAA,KAAA;IACA;MACAC,YAAA,EAAAH,QAAA;MACAI,WAAA;MACAC,QAAA;QACAC,QAAA;QACAC,QAAA;QACAC,IAAA;QACAC,OAAA;MACA;IACA;EACA;EACAC,QAAA;IACAC,QAAA,WAAAA,SAAA;MACA;QACAL,QAAA,GACA;UAAAM,QAAA;UAAAC,OAAA,OAAAC,EAAA;UAAA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