2025-02-25 14:04:51 +08:00
|
|
|
{"remainingRequest":"E:\\hz-zhhq-web\\node_modules\\babel-loader\\lib\\index.js!E:\\hz-zhhq-web\\node_modules\\cache-loader\\dist\\cjs.js??ref--0-0!E:\\hz-zhhq-web\\node_modules\\vue-loader\\lib\\index.js??vue-loader-options!E:\\hz-zhhq-web\\src\\views\\login\\ywgllogin.vue?vue&type=script&lang=js","dependencies":[{"path":"E:\\hz-zhhq-web\\src\\views\\login\\ywgllogin.vue","mtime":1737610069434},{"path":"E:\\hz-zhhq-web\\babel.config.js","mtime":1737610069371},{"path":"E:\\hz-zhhq-web\\node_modules\\cache-loader\\dist\\cjs.js","mtime":1740463332762},{"path":"E:\\hz-zhhq-web\\node_modules\\babel-loader\\lib\\index.js","mtime":1740463332584},{"path":"E:\\hz-zhhq-web\\node_modules\\cache-loader\\dist\\cjs.js","mtime":1740463332762},{"path":"E:\\hz-zhhq-web\\node_modules\\vue-loader\\lib\\index.js","mtime":1740463340941}],"contextDependencies":[],"result":["\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = void 0;\nrequire(\"core-js/modules/es6.regexp.replace\");\nrequire(\"core-js/modules/es6.regexp.split\");\nvar _getdata = require(\"@/api/getdata\");\nvar _auth = require(\"@/utils/auth\");\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//\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//\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//\n//\n//\n//\n//\n//import { getToken } from '@/utils/auth'\nvar _default = exports.default = {\n name: \"YwglLogin\",\n data: function data() {\n return {\n loginRules: {},\n loginForm: {\n username: \"\",\n password: \"\",\n rememberMe: false,\n code: \"\",\n uuid: \"\"\n },\n loading: false,\n // 验证码开关\n captchaOnOff: true,\n // 注册开关\n register: false,\n redirect: undefined\n };\n },\n watch: {\n $route: {\n handler: function handler(route) {\n this.redirect = route.query && route.query.redirect;\n },\n immediate: true\n }\n },\n beforeRouteEnter: function beforeRouteEnter(to, from, next) {\n console.log('从 ' + from.path + ' 进入ywgllogin');\n next(); // 必须调用next()来解决路由守卫的promise\n },\n created: function created() {\n //平台单独的登录 2024年4月16日11:23:58\n this.getLoginByNameAndTokenJ();\n },\n methods: {\n /**\n * 只传递token\n */\n getLoginByNameAndTokenJ: function getLoginByNameAndTokenJ() {\n var _this = this;\n console.log(window.location.href);\n var url = window.location.href.split(\"?\");\n var tickets = '';\n if (url.length > 1) {\n var params = url[1].split(\"#\");\n if (params.length > 0) {\n params = params[0].split(\"=\");\n if (params.length > 1) {\n tickets = params[1];\n }\n }\n }\n if (!tickets) {\n tickets = this.$route.query.ticket;\n }\n console.log(tickets);\n //调用登录的接口\n if (tickets) {\n //转圈圈,不要看到登陆页面,无感体验\n this.loading = true;\n var loginForm = {\n ticket: tickets,\n loginType: 333\n };\n console.log(loginForm);\n console.log(\"开始登录..\");\n //执行另一套登录操作\n /* this.$store.dispatch('user/login', loginForm).then(() => {\n console.log(\"登录成功了..\")\n this.$router.replace({ path:\"/\" || \"/\" }).catch(()=
|