beelink/dist/js/chunk-0d9de69e.d7efa2bb.js.map
2020-12-02 16:07:58 +08:00

1 line
4.9 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.d7efa2bb.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>\n <div></div>\n</template>\n<style lang=\"scss\" scoped>\n\n</style>\n<script lang=\"ts\">\nimport { accessToken, authLogin } from \"@/api\";\nimport { setToken } from \"@/api/base\";\nimport router from \"@/router\";\nimport store from \"@/store\";\nimport { saveValue } from \"@/utils/common\";\nimport { message } from \"ant-design-vue\";\nimport axios from \"axios\";\nimport { defineComponent } from \"vue\";\nimport { useRoute } from \"vue-router\";\n\n\nexport default defineComponent(({\n setup(){\n const code: any = useRoute().query.code;\n accessToken(code).then((res: any)=>{\n console.log(res)\n authLogin(res.uid, 2).then((res: any)=>{\n if(res.redirect == 1){\n sessionStorage.setItem('mid',res.memberid);\n router.push(\"/sign\")\n \n }else{\n if(!saveValue(\"token\", res.api_token) && !saveValue(\"memberid\", res.memberid) ){\n message.error(\"存储错误, 请允许网页使用本地存储!\")\n return false;\n }else{\n setToken();\n store.commit(\"login\", true);\n store.dispatch(\"setUserInfo\");\n router.push(\"/mine/archives\")\n }\n }\n })\n })\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}`\n }\n}))\n</script>","\nimport { accessToken, authLogin } from \"@/api\";\nimport { setToken } from \"@/api/base\";\nimport router from \"@/router\";\nimport store from \"@/store\";\nimport { saveValue } from \"@/utils/common\";\nimport { message } from \"ant-design-vue\";\nimport axios from \"axios\";\nimport { defineComponent } from \"vue\";\nimport { useRoute } from \"vue-router\";\n\n\nexport default defineComponent(({\n setup(){\n const code: any = useRoute().query.code;\n accessToken(code).then((res: any)=>{\n console.log(res)\n authLogin(res.uid, 2).then((res: any)=>{\n if(res.redirect == 1){\n sessionStorage.setItem('mid',res.memberid);\n router.push(\"/sign\")\n \n }else{\n if(!saveValue(\"token\", res.api_token) && !saveValue(\"memberid\", res.memberid) ){\n message.error(\"存储错误, 请允许网页使用本地存储!\")\n return false;\n }else{\n setToken();\n store.commit(\"login\", true);\n store.dispatch(\"setUserInfo\");\n router.push(\"/mine/archives\")\n }\n }\n })\n })\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}`\n }\n}))\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":""}