1 line
5.1 KiB
Plaintext
1 line
5.1 KiB
Plaintext
{"version":3,"sources":["webpack:///./src/views/login/wblogin.vue?2122","webpack:///./src/views/login/wblogin.vue","webpack:///./src/views/login/wblogin.vue?0d29","webpack:///./src/views/login/wblogin.vue?668d"],"names":["setup","code","query","then","res","console","log","uid","redirect","sessionStorage","setItem","memberid","router","push","api_token","message","error","store","commit","dispatch","render","__scopeId"],"mappings":"gHAAA,W,2LCCI,yBAAW,U,oFCWA,+BAAiB,CAC5BA,MAD4B,WAEzB,IAAMC,EAAa,iBAAWC,MAAMD,KACpC,eAAYA,GAAME,MAAK,SAACC,GACpBC,QAAQC,IAAIF,GACZ,eAAUA,EAAIG,IAAK,GAAGJ,MAAK,SAACC,GAC3B,GAAmB,GAAhBA,EAAII,SACLC,eAAeC,QAAQ,MAAMN,EAAIO,UACjCC,EAAA,KAAOC,KAAK,aAET,CACH,IAAI,eAAU,QAAST,EAAIU,aAAe,eAAU,WAAYV,EAAIO,UAEhE,OADAI,EAAA,KAAQC,MAAM,uBACP,EAEP,iBACAC,EAAA,KAAMC,OAAO,SAAS,GACtBD,EAAA,KAAME,SAAS,eACfP,EAAA,KAAOC,KAAK,4B,UCzB9B,EAAOO,OAAS,EAChB,EAAOC,UAAY,kBAEJ","file":"js/chunk-0d9de69e.5551e621.js","sourcesContent":["export * from \"-!../../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--8-oneOf-1-0!../../../node_modules/css-loader/dist/cjs.js??ref--8-oneOf-1-1!../../../node_modules/vue-loader-v16/dist/stylePostLoader.js!../../../node_modules/postcss-loader/src/index.js??ref--8-oneOf-1-2!../../../node_modules/sass-loader/dist/cjs.js??ref--8-oneOf-1-3!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader-v16/dist/index.js??ref--0-1!./wblogin.vue?vue&type=style&index=0&id=5fc93bec&lang=scss&scoped=true\"","<template>\r\n <div></div>\r\n</template>\r\n<style lang=\"scss\" scoped>\r\n\r\n</style>\r\n<script lang=\"ts\">\r\nimport { accessToken, authLogin } from \"@/api\";\r\nimport { setToken } from \"@/api/base\";\r\nimport router from \"@/router\";\r\nimport store from \"@/store\";\r\nimport { saveValue } from \"@/utils/common\";\r\nimport { message } from \"ant-design-vue\";\r\nimport axios from \"axios\";\r\nimport { defineComponent } from \"vue\";\r\nimport { useRoute } from \"vue-router\";\r\n\r\n\r\nexport default defineComponent(({\r\n setup(){\r\n const code: any = useRoute().query.code;\r\n accessToken(code).then((res: any)=>{\r\n console.log(res)\r\n authLogin(res.uid, 2).then((res: any)=>{\r\n if(res.redirect == 1){\r\n sessionStorage.setItem('mid',res.memberid);\r\n router.push(\"/sign\")\r\n \r\n }else{\r\n if(!saveValue(\"token\", res.api_token) && !saveValue(\"memberid\", res.memberid) ){\r\n message.error(\"存储错误, 请允许网页使用本地存储!\")\r\n return false;\r\n }else{\r\n setToken();\r\n store.commit(\"login\", true);\r\n store.dispatch(\"setUserInfo\");\r\n router.push(\"/mine/archives\")\r\n }\r\n }\r\n })\r\n })\r\n // window.location.href=`https://api.weibo.com/oauth2/access_token?client_id=2754574056&client_secret=2f16267634db2de14cda7891c49aa54a&grant_type=authorization_code&redirect_uri=https://beelink.theluyuan.com/wblogin&code=${code}`\r\n }\r\n}))\r\n</script>","\r\nimport { accessToken, authLogin } from \"@/api\";\r\nimport { setToken } from \"@/api/base\";\r\nimport router from \"@/router\";\r\nimport store from \"@/store\";\r\nimport { saveValue } from \"@/utils/common\";\r\nimport { message } from \"ant-design-vue\";\r\nimport axios from \"axios\";\r\nimport { defineComponent } from \"vue\";\r\nimport { useRoute } from \"vue-router\";\r\n\r\n\r\nexport default defineComponent(({\r\n setup(){\r\n const code: any = useRoute().query.code;\r\n accessToken(code).then((res: any)=>{\r\n console.log(res)\r\n authLogin(res.uid, 2).then((res: any)=>{\r\n if(res.redirect == 1){\r\n sessionStorage.setItem('mid',res.memberid);\r\n router.push(\"/sign\")\r\n \r\n }else{\r\n if(!saveValue(\"token\", res.api_token) && !saveValue(\"memberid\", res.memberid) ){\r\n message.error(\"存储错误, 请允许网页使用本地存储!\")\r\n return false;\r\n }else{\r\n setToken();\r\n store.commit(\"login\", true);\r\n store.dispatch(\"setUserInfo\");\r\n router.push(\"/mine/archives\")\r\n }\r\n }\r\n })\r\n })\r\n // window.location.href=`https://api.weibo.com/oauth2/access_token?client_id=2754574056&client_secret=2f16267634db2de14cda7891c49aa54a&grant_type=authorization_code&redirect_uri=https://beelink.theluyuan.com/wblogin&code=${code}`\r\n }\r\n}))\r\n","import { render } from \"./wblogin.vue?vue&type=template&id=5fc93bec&scoped=true&bindings={}\"\nimport script from \"./wblogin.vue?vue&type=script&lang=ts\"\nexport * from \"./wblogin.vue?vue&type=script&lang=ts\"\n\nimport \"./wblogin.vue?vue&type=style&index=0&id=5fc93bec&lang=scss&scoped=true\"\nscript.render = render\nscript.__scopeId = \"data-v-5fc93bec\"\n\nexport default script"],"sourceRoot":""} |