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

1 line
19 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\\pages\\login.vue?vue&type=script&lang=js&","dependencies":[{"path":"C:\\Users\\27446\\Desktop\\up\\front\\dkha-web-sz-main\\src\\views\\pages\\login.vue","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},{"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/es6.regexp.replace\";\nimport \"core-js/modules/web.dom.iterable\";\nimport \"core-js/modules/es6.string.iterator\";\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\nimport Cookies from 'js-cookie';\nimport debounce from 'lodash/debounce';\nimport { messages } from '@/i18n';\nimport { getUUID, clearLoginInfo } from '@/utils';\nimport ajax from '@/utils/login';\nexport default {\n data: function data() {\n return {\n i18nMessages: messages,\n loading: false,\n captchaPath: '',\n dataForm: {\n username: '',\n password: '',\n uuid: '',\n captcha: '',\n grant_type: 'password'\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 mounted: function mounted() {\n this.getCaptcha();\n },\n methods: {\n // 获取验证码\n getCaptcha: function getCaptcha() {\n this.dataForm.uuid = getUUID();\n this.captchaPath = \"\".concat(window.SITE_CONFIG['apiURL'], \"/auth/captcha?uuid=\").concat(this.dataForm.uuid);\n },\n loginSelf: function loginSelf() {\n var _this = this;\n\n return new Promise(function (resolve, reject) {\n _this.$http.post('/auth/oauth/token', _this.dataForm, {\n headers: {\n 'content-type': 'application/x-www-form-urlencoded',\n 'Authorization': 'Basic cmVucmVuaW86cmVucmVuaW8='\n }\n }).then(function (_ref) {\n var res = _ref.data;\n\n if (res.code !== 0) {\n reject(res.msg);\n\n _this.getCaptcha();\n }\n\n resolve('success');\n Cookies.set('access_token', res.access_token);\n }).catch(function (err) {\n reject(err.response.data);\n });\n });\n },\n login3dSystem: function login3dSystem() {\n var _this2 = this;\n\n return new Promise(function (resolve, reject) {\n ajax({\n url: \"/map/account/token\",\n method: \"post\",\n headers: {\n 'Authorization': ''\n },\n data: {\n loginName: _this2.dataForm.username,\n password: _this2.dataForm.password\n }\n }).then(function (_ref2) {\n var res = _ref2.data;\n\n if (res.status != 200)