{"remainingRequest":"D:\\jenkins\\workspace\\jd_cgpt_fvue\\node_modules\\thread-loader\\dist\\cjs.js!D:\\jenkins\\workspace\\jd_cgpt_fvue\\node_modules\\babel-loader\\lib\\index.js!D:\\jenkins\\workspace\\jd_cgpt_fvue\\node_modules\\cache-loader\\dist\\cjs.js??ref--0-0!D:\\jenkins\\workspace\\jd_cgpt_fvue\\node_modules\\vue-loader\\lib\\index.js??vue-loader-options!D:\\jenkins\\workspace\\jd_cgpt_fvue\\src\\views\\Auth.vue?vue&type=script&lang=js&","dependencies":[{"path":"D:\\jenkins\\workspace\\jd_cgpt_fvue\\src\\views\\Auth.vue","mtime":1701745912029},{"path":"D:\\jenkins\\workspace\\jd_cgpt_fvue\\node_modules\\cache-loader\\dist\\cjs.js","mtime":499162500000},{"path":"D:\\jenkins\\workspace\\jd_cgpt_fvue\\node_modules\\thread-loader\\dist\\cjs.js","mtime":499162500000},{"path":"D:\\jenkins\\workspace\\jd_cgpt_fvue\\node_modules\\babel-loader\\lib\\index.js","mtime":315532800000},{"path":"D:\\jenkins\\workspace\\jd_cgpt_fvue\\node_modules\\cache-loader\\dist\\cjs.js","mtime":499162500000},{"path":"D:\\jenkins\\workspace\\jd_cgpt_fvue\\node_modules\\vue-loader\\lib\\index.js","mtime":499162500000}],"contextDependencies":[],"result":["//\n//\n//\n//\n//\n//\n//\n//\n//\n//\nimport utils from '@/utils.js';\nimport uc from '@/api/uc.js';\nexport default {\n components: {},\n data: function data() {\n return {\n loading: true,\n code: '',\n message: '',\n err: '',\n loadingColor: 'rgba(88, 115, 134, 0.3)'\n };\n },\n mounted: function mounted() {\n // 根据企业微信链接分离出需要的参数\n this.code = utils.getParameters('code');\n console.log(this.code, 'this.code ');\n\n if (!this.code) {\n this.loading = false;\n this.$message.warning({\n type: 'warning',\n message: '企业微信登录失败,将跳转至登录页面!'\n });\n this.$router.push({\n path: '/login'\n });\n return;\n } else {\n this.proxyLogin(this.code);\n }\n },\n methods: {\n proxyLogin: function proxyLogin(code) {\n var _this = this;\n\n this.$store.dispatch('login/loginByQYWX', code).then(function (loginStatus) {\n _this.message = loginStatus;\n\n if (loginStatus && loginStatus == true) {\n _this.$store.dispatch('menu/getCurrentUserMethodAuth');\n\n _this.$store.dispatch('login/getAllDict');\n\n _this.$store.dispatch('menu/actionFrontMenus').then(function (res) {\n if (!res || !res.length) {\n _this.loading = false;\n\n _this.$message.warning('抱歉!您尚无可访问页面,请联系管理员添加!');\n\n setTimeout(function () {\n _this.$router.push({\n path: '/login'\n });\n }, 5000);\n return;\n }\n\n var bigScreen = res && res.filter(function (item) {\n return item.alias === 'bigScreen';\n }); // 如果用户有大屏菜单进去大屏页面\n\n if (bigScreen && bigScreen.length !== 0) {\n _this.$router.push({\n path: \"/\".concat(bigScreen[0].children[0].alias)\n });\n\n return;\n }\n });\n } else if (loginStatus == false) {\n _this.$router.push({\n name: 'resetPwdView',\n query: {\n type: 'login'\n }\n });\n }\n }).catch(function (msg) {\n _this.loading = false;\n _this.err = msg;\n\n _this.$message.warning(msg);\n\n if (msg.indexOf && msg.indexOf('timeout of') !== -1) {\n _this.$message.warning('登录超时');\n }\n\n setTimeout(function () {\n _this.$router.push({\n path: '/login'\n });\n }, 2000);\n });\n }\n }\n};",null]}