hz-zhhq-web/node_modules/.cache/babel-loader/6eee4994fb1b3f35a3bfd2fee78...

1 line
5.9 KiB
JSON
Raw Normal View History

2025-02-25 13:43:48 +08:00
{"remainingRequest":"E:\\hz-zhhq-web\\node_modules\\thread-loader\\dist\\cjs.js!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":499162500000},{"path":"E:\\hz-zhhq-web\\node_modules\\thread-loader\\dist\\cjs.js","mtime":499162500000},{"path":"E:\\hz-zhhq-web\\node_modules\\babel-loader\\lib\\index.js","mtime":456789000000},{"path":"E:\\hz-zhhq-web\\node_modules\\cache-loader\\dist\\cjs.js","mtime":499162500000},{"path":"E:\\hz-zhhq-web\\node_modules\\vue-loader\\lib\\index.js","mtime":499162500000}],"contextDependencies":[],"result":["import \"core-js/modules/es6.regexp.replace\";\nimport \"core-js/modules/es6.regexp.split\";\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\n//import { getToken } from '@/utils/auth'\nimport { userLogin2 } from \"@/api/getdata\";\nimport { setToken, setIscId } from '@/utils/auth';\nexport 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:\"