Merge pull request 'touxiang' (#243) from xbx into master
Reviewed-on: http://git.luyuan.tk/luyuan/beelink/pulls/243
This commit is contained in:
commit
17c189738e
File diff suppressed because one or more lines are too long
4
dist/index.html
vendored
4
dist/index.html
vendored
@ -61,11 +61,11 @@
|
||||
left: 0;
|
||||
z-index: 1001;
|
||||
display: none;
|
||||
}</style><meta property="og:type" content="website"><meta property="og:title" content="分享测试测试"><meta property="og:description" content="分享描述"><meta property="og:image" content="http://1303872925.vod2.myqcloud.com/7db674eavodcq1303872925/a5d03b0c5285890810149245655/vrLgNu2JaBkA.png"><meta property="og:url" content="https://beelink.theluyuan.com/"><link href="/css/chunk-04e3a2fa.08ef3a2d.css" rel="prefetch"><link href="/css/chunk-05d3c41a.55076a31.css" rel="prefetch"><link href="/css/chunk-06828374.8e285ce3.css" rel="prefetch"><link href="/css/chunk-0d9de69e.0e433876.css" rel="prefetch"><link href="/css/chunk-0eba50eb.6c3d9a12.css" rel="prefetch"><link href="/css/chunk-18d6ebc2.07c0f4a4.css" rel="prefetch"><link href="/css/chunk-1f21263e.b9051f93.css" rel="prefetch"><link href="/css/chunk-27236dd2.3992b5d2.css" rel="prefetch"><link href="/css/chunk-2a197f09.b2772b24.css" rel="prefetch"><link href="/css/chunk-2b71f1e5.182b1bb8.css" rel="prefetch"><link href="/css/chunk-2f334deb.71bbd542.css" rel="prefetch"><link href="/css/chunk-2fe3a393.9e89625b.css" rel="prefetch"><link href="/css/chunk-39b973ba.0e433876.css" rel="prefetch"><link href="/css/chunk-3c7641ed.f87c4e8b.css" rel="prefetch"><link href="/css/chunk-41b71764.3243d28f.css" rel="prefetch"><link href="/css/chunk-4663db36.3eaba60f.css" rel="prefetch"><link href="/css/chunk-520d8a08.dd761c06.css" rel="prefetch"><link href="/css/chunk-650d0cb1.47d38586.css" rel="prefetch"><link href="/css/chunk-68091c98.14c0db2d.css" rel="prefetch"><link href="/css/chunk-6e7aa5b1.9851e10f.css" rel="prefetch"><link href="/css/chunk-74d6e86d.85aed290.css" rel="prefetch"><link href="/css/chunk-7582a703.b7f6c0c7.css" rel="prefetch"><link href="/css/chunk-7da0eb18.409b8eb7.css" rel="prefetch"><link href="/css/chunk-8d0dacb4.b6d4145a.css" rel="prefetch"><link href="/css/chunk-922d780a.e11df9e0.css" rel="prefetch"><link href="/css/chunk-977f0f52.6081abf8.css" rel="prefetch"><link href="/css/chunk-a4a29886.aa3c0949.css" rel="prefetch"><link href="/css/chunk-da7e1532.17a6e0e0.css" rel="prefetch"><link href="/css/chunk-ebdb96a0.d22f743d.css" rel="prefetch"><link href="/css/chunk-ef207110.a20941ed.css" rel="prefetch"><link href="/js/chunk-04e3a2fa.644947cf.js" rel="prefetch"><link href="/js/chunk-05d3c41a.eb6172e6.js" rel="prefetch"><link href="/js/chunk-06828374.396a639e.js" rel="prefetch"><link href="/js/chunk-0d9de69e.e6b0519c.js" rel="prefetch"><link href="/js/chunk-0eba50eb.7bb1f173.js" rel="prefetch"><link href="/js/chunk-18d6ebc2.705d439f.js" rel="prefetch"><link href="/js/chunk-1f21263e.93577762.js" rel="prefetch"><link href="/js/chunk-27236dd2.6a20330a.js" rel="prefetch"><link href="/js/chunk-2a197f09.a0d9b395.js" rel="prefetch"><link href="/js/chunk-2b71f1e5.1586a6db.js" rel="prefetch"><link href="/js/chunk-2f334deb.2bce887c.js" rel="prefetch"><link href="/js/chunk-2fe3a393.3c22fe3d.js" rel="prefetch"><link href="/js/chunk-39b973ba.b9a3c15b.js" rel="prefetch"><link href="/js/chunk-3c7641ed.98a67f5d.js" rel="prefetch"><link href="/js/chunk-41b71764.2ddfaa5a.js" rel="prefetch"><link href="/js/chunk-4663db36.8cb98f8c.js" rel="prefetch"><link href="/js/chunk-520d8a08.2b87a45a.js" rel="prefetch"><link href="/js/chunk-650d0cb1.35a1fd6a.js" rel="prefetch"><link href="/js/chunk-68091c98.6bc9c5f0.js" rel="prefetch"><link href="/js/chunk-6e7aa5b1.3223b150.js" rel="prefetch"><link href="/js/chunk-74d6e86d.dd675539.js" rel="prefetch"><link href="/js/chunk-7582a703.6d0001bc.js" rel="prefetch"><link href="/js/chunk-7da0eb18.889148b0.js" rel="prefetch"><link href="/js/chunk-8d0dacb4.e4bf4f99.js" rel="prefetch"><link href="/js/chunk-922d780a.54ca79a7.js" rel="prefetch"><link href="/js/chunk-977f0f52.162b9d9d.js" rel="prefetch"><link href="/js/chunk-a4a29886.574f1892.js" rel="prefetch"><link href="/js/chunk-da7e1532.4b71bb2c.js" rel="prefetch"><link href="/js/chunk-ebdb96a0.cbefff6f.js" rel="prefetch"><link href="/js/chunk-ef207110.58ca6790.js" rel="prefetch"><link href="/css/app.3feb420b.css" rel="preload" as="style"><link href="/css/chunk-vendors.d0a33139.css" rel="preload" as="style"><link href="/js/app.dc80fe4c.js" rel="preload" as="script"><link href="/js/chunk-vendors.60dc9ef4.js" rel="preload" as="script"><link href="/css/chunk-vendors.d0a33139.css" rel="stylesheet"><link href="/css/app.3feb420b.css" rel="stylesheet"></head><body><noscript><strong>We're sorry but beelink doesn't work properly without JavaScript enabled. Please enable it to continue.</strong></noscript><div id="app"></div><div id="make"></div><script>window.fbAsyncInit = function () {
|
||||
}</style><meta property="og:type" content="website"><meta property="og:title" content="分享测试测试"><meta property="og:description" content="分享描述"><meta property="og:image" content="http://1303872925.vod2.myqcloud.com/7db674eavodcq1303872925/a5d03b0c5285890810149245655/vrLgNu2JaBkA.png"><meta property="og:url" content="https://beelink.theluyuan.com/"><link href="/css/chunk-04e3a2fa.08ef3a2d.css" rel="prefetch"><link href="/css/chunk-05d3c41a.55076a31.css" rel="prefetch"><link href="/css/chunk-06828374.8e285ce3.css" rel="prefetch"><link href="/css/chunk-0d9de69e.0e433876.css" rel="prefetch"><link href="/css/chunk-18d6ebc2.07c0f4a4.css" rel="prefetch"><link href="/css/chunk-1f21263e.b9051f93.css" rel="prefetch"><link href="/css/chunk-21b42480.6808bbcc.css" rel="prefetch"><link href="/css/chunk-27236dd2.3992b5d2.css" rel="prefetch"><link href="/css/chunk-2a197f09.b2772b24.css" rel="prefetch"><link href="/css/chunk-2b71f1e5.182b1bb8.css" rel="prefetch"><link href="/css/chunk-2f334deb.71bbd542.css" rel="prefetch"><link href="/css/chunk-2fe3a393.9e89625b.css" rel="prefetch"><link href="/css/chunk-39b973ba.0e433876.css" rel="prefetch"><link href="/css/chunk-3c7641ed.f87c4e8b.css" rel="prefetch"><link href="/css/chunk-41b71764.3243d28f.css" rel="prefetch"><link href="/css/chunk-4663db36.3eaba60f.css" rel="prefetch"><link href="/css/chunk-520d8a08.dd761c06.css" rel="prefetch"><link href="/css/chunk-650d0cb1.47d38586.css" rel="prefetch"><link href="/css/chunk-68091c98.14c0db2d.css" rel="prefetch"><link href="/css/chunk-6e7aa5b1.9851e10f.css" rel="prefetch"><link href="/css/chunk-74d6e86d.85aed290.css" rel="prefetch"><link href="/css/chunk-7582a703.b7f6c0c7.css" rel="prefetch"><link href="/css/chunk-7da0eb18.409b8eb7.css" rel="prefetch"><link href="/css/chunk-8d0dacb4.b6d4145a.css" rel="prefetch"><link href="/css/chunk-922d780a.e11df9e0.css" rel="prefetch"><link href="/css/chunk-977f0f52.6081abf8.css" rel="prefetch"><link href="/css/chunk-a4a29886.aa3c0949.css" rel="prefetch"><link href="/css/chunk-da7e1532.17a6e0e0.css" rel="prefetch"><link href="/css/chunk-ebdb96a0.d22f743d.css" rel="prefetch"><link href="/css/chunk-ef207110.a20941ed.css" rel="prefetch"><link href="/js/chunk-04e3a2fa.644947cf.js" rel="prefetch"><link href="/js/chunk-05d3c41a.eb6172e6.js" rel="prefetch"><link href="/js/chunk-06828374.396a639e.js" rel="prefetch"><link href="/js/chunk-0d9de69e.9b497785.js" rel="prefetch"><link href="/js/chunk-18d6ebc2.705d439f.js" rel="prefetch"><link href="/js/chunk-1f21263e.93577762.js" rel="prefetch"><link href="/js/chunk-21b42480.bd68920f.js" rel="prefetch"><link href="/js/chunk-27236dd2.6a20330a.js" rel="prefetch"><link href="/js/chunk-2a197f09.a0d9b395.js" rel="prefetch"><link href="/js/chunk-2b71f1e5.1586a6db.js" rel="prefetch"><link href="/js/chunk-2f334deb.2bce887c.js" rel="prefetch"><link href="/js/chunk-2fe3a393.3c22fe3d.js" rel="prefetch"><link href="/js/chunk-39b973ba.b9a3c15b.js" rel="prefetch"><link href="/js/chunk-3c7641ed.98a67f5d.js" rel="prefetch"><link href="/js/chunk-41b71764.2ddfaa5a.js" rel="prefetch"><link href="/js/chunk-4663db36.8cb98f8c.js" rel="prefetch"><link href="/js/chunk-520d8a08.fa8b550a.js" rel="prefetch"><link href="/js/chunk-650d0cb1.35a1fd6a.js" rel="prefetch"><link href="/js/chunk-68091c98.6bc9c5f0.js" rel="prefetch"><link href="/js/chunk-6e7aa5b1.3223b150.js" rel="prefetch"><link href="/js/chunk-74d6e86d.014b0140.js" rel="prefetch"><link href="/js/chunk-7582a703.6d0001bc.js" rel="prefetch"><link href="/js/chunk-7da0eb18.889148b0.js" rel="prefetch"><link href="/js/chunk-8d0dacb4.e4bf4f99.js" rel="prefetch"><link href="/js/chunk-922d780a.54ca79a7.js" rel="prefetch"><link href="/js/chunk-977f0f52.162b9d9d.js" rel="prefetch"><link href="/js/chunk-a4a29886.574f1892.js" rel="prefetch"><link href="/js/chunk-da7e1532.4b71bb2c.js" rel="prefetch"><link href="/js/chunk-ebdb96a0.cbefff6f.js" rel="prefetch"><link href="/js/chunk-ef207110.58ca6790.js" rel="prefetch"><link href="/css/app.3feb420b.css" rel="preload" as="style"><link href="/css/chunk-vendors.d0a33139.css" rel="preload" as="style"><link href="/js/app.a6d6b02b.js" rel="preload" as="script"><link href="/js/chunk-vendors.60dc9ef4.js" rel="preload" as="script"><link href="/css/chunk-vendors.d0a33139.css" rel="stylesheet"><link href="/css/app.3feb420b.css" rel="stylesheet"></head><body><noscript><strong>We're sorry but beelink doesn't work properly without JavaScript enabled. Please enable it to continue.</strong></noscript><div id="app"></div><div id="make"></div><script>window.fbAsyncInit = function () {
|
||||
FB.init({
|
||||
appId: '277826133389999',
|
||||
autoLogAppEvents: true,
|
||||
xfbml: true,
|
||||
version: 'v8.0'
|
||||
});
|
||||
};</script><script async defer crossorigin="anonymous" src="https://connect.facebook.net/en_US/sdk.js"></script><script src="/js/cropper.min.js"></script><script src="/js/jquery-3.2.1.min.js"></script><div id="xiangqingdivadsensedisplaynone" style="display:none;"><script async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script><ins class="adsbygoogle" style="display:inline-block;width:728px;height:90px" data-ad-client="ca-pub-7145171713084445" data-ad-slot="9189068072"></ins><script>(adsbygoogle = window.adsbygoogle || []).push({});</script></div><div id="guanlidivadsensedisplaynone" style="display:none;"><ins class="adsbygoogle" style="display:inline-block;width:450px;height:380px" data-ad-client="ca-pub-7145171713084445" data-ad-slot="4213570423"></ins><script>(adsbygoogle = window.adsbygoogle || []).push({});</script></div><script>$("meta[property='og:title']")[0].content = "测试动态"</script><script src="/js/chunk-vendors.60dc9ef4.js"></script><script src="/js/app.dc80fe4c.js"></script></body></html>
|
||||
};</script><script async defer crossorigin="anonymous" src="https://connect.facebook.net/en_US/sdk.js"></script><script src="/js/cropper.min.js"></script><script src="/js/jquery-3.2.1.min.js"></script><div id="xiangqingdivadsensedisplaynone" style="display:none;"><script async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script><ins class="adsbygoogle" style="display:inline-block;width:728px;height:90px" data-ad-client="ca-pub-7145171713084445" data-ad-slot="9189068072"></ins><script>(adsbygoogle = window.adsbygoogle || []).push({});</script></div><div id="guanlidivadsensedisplaynone" style="display:none;"><ins class="adsbygoogle" style="display:inline-block;width:450px;height:380px" data-ad-client="ca-pub-7145171713084445" data-ad-slot="4213570423"></ins><script>(adsbygoogle = window.adsbygoogle || []).push({});</script></div><script>$("meta[property='og:title']")[0].content = "测试动态"</script><script src="/js/chunk-vendors.60dc9ef4.js"></script><script src="/js/app.a6d6b02b.js"></script></body></html>
|
2
dist/js/app.a6d6b02b.js
vendored
Normal file
2
dist/js/app.a6d6b02b.js
vendored
Normal file
File diff suppressed because one or more lines are too long
1
dist/js/app.a6d6b02b.js.map
vendored
Normal file
1
dist/js/app.a6d6b02b.js.map
vendored
Normal file
File diff suppressed because one or more lines are too long
2
dist/js/app.dc80fe4c.js
vendored
2
dist/js/app.dc80fe4c.js
vendored
File diff suppressed because one or more lines are too long
1
dist/js/app.dc80fe4c.js.map
vendored
1
dist/js/app.dc80fe4c.js.map
vendored
File diff suppressed because one or more lines are too long
@ -1,2 +1,2 @@
|
||||
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-0d9de69e"],{4083:function(e,c,t){"use strict";t("65de")},"65de":function(e,c,t){},c10c:function(e,c,t){"use strict";t.r(c);var n=t("7a23"),i=Object(n["withScopeId"])("data-v-5fc93bec"),o=i((function(e,c,t,i,o,d){return Object(n["openBlock"])(),Object(n["createBlock"])("div")})),d=t("79f6"),r=t("89df"),a=t("afbc"),s=t("0613"),b=t("48b8"),u=t("f64c"),f=t("6c02"),p=Object(n["defineComponent"])({setup:function(){var e=Object(f["d"])().query.code;Object(d["a"])(e).then((function(e){Object(d["e"])(e.uid,2).then((function(e){if(1==e.redirect)sessionStorage.setItem("mid",e.memberid),a["a"].push("/sign");else{if(!Object(b["e"])("token",e.api_token)&&!Object(b["e"])("memberid",e.memberid))return u["a"].error("存储错误, 请允许网页使用本地存储!"),!1;Object(r["e"])(),s["a"].commit("login",!0),s["a"].dispatch("setUserInfo"),a["a"].push("/mine/archives")}}))}))}});t("4083");p.render=o,p.__scopeId="data-v-5fc93bec";c["default"]=p}}]);
|
||||
//# sourceMappingURL=chunk-0d9de69e.e6b0519c.js.map
|
||||
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-0d9de69e"],{4083:function(e,c,t){"use strict";t("65de")},"65de":function(e,c,t){},c10c:function(e,c,t){"use strict";t.r(c);var n=t("7a23"),i=Object(n["withScopeId"])("data-v-5fc93bec"),o=i((function(e,c,t,i,o,d){return Object(n["openBlock"])(),Object(n["createBlock"])("div")})),d=t("79f6"),r=t("89df"),a=t("afbc"),s=t("0613"),b=t("48b8"),u=t("f64c"),f=t("6c02"),p=Object(n["defineComponent"])({setup:function(){var e=Object(f["d"])().query.code;Object(d["a"])(e).then((function(e){Object(d["e"])(e.uid,2).then((function(e){if(1==e.redirect)sessionStorage.setItem("mid",e.memberid),a["a"].push("/sign");else{if(!Object(b["e"])("token",e.api_token)&&!Object(b["e"])("memberid",e.memberid))return u["a"].error("存储错误, 请允许网页使用本地存储!"),!1;Object(r["g"])(),s["a"].commit("login",!0),s["a"].dispatch("setUserInfo"),a["a"].push("/mine/archives")}}))}))}});t("4083");p.render=o,p.__scopeId="data-v-5fc93bec";c["default"]=p}}]);
|
||||
//# sourceMappingURL=chunk-0d9de69e.9b497785.js.map
|
@ -1 +1 @@
|
||||
{"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","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,GAEpB,eAAUA,EAAIC,IAAK,GAAGF,MAAK,SAACC,GAC3B,GAAmB,GAAhBA,EAAIE,SACLC,eAAeC,QAAQ,MAAMJ,EAAIK,UACjCC,EAAA,KAAOC,KAAK,aAET,CACH,IAAI,eAAU,QAASP,EAAIQ,aAAe,eAAU,WAAYR,EAAIK,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.e6b0519c.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":""}
|
||||
{"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","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,GAEpB,eAAUA,EAAIC,IAAK,GAAGF,MAAK,SAACC,GAC3B,GAAmB,GAAhBA,EAAIE,SACLC,eAAeC,QAAQ,MAAMJ,EAAIK,UACjCC,EAAA,KAAOC,KAAK,aAET,CACH,IAAI,eAAU,QAASP,EAAIQ,aAAe,eAAU,WAAYR,EAAIK,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.9b497785.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":""}
|
2
dist/js/chunk-0eba50eb.7bb1f173.js
vendored
2
dist/js/chunk-0eba50eb.7bb1f173.js
vendored
File diff suppressed because one or more lines are too long
1
dist/js/chunk-0eba50eb.7bb1f173.js.map
vendored
1
dist/js/chunk-0eba50eb.7bb1f173.js.map
vendored
File diff suppressed because one or more lines are too long
2
dist/js/chunk-21b42480.bd68920f.js
vendored
Normal file
2
dist/js/chunk-21b42480.bd68920f.js
vendored
Normal file
File diff suppressed because one or more lines are too long
1
dist/js/chunk-21b42480.bd68920f.js.map
vendored
Normal file
1
dist/js/chunk-21b42480.bd68920f.js.map
vendored
Normal file
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@ -33,6 +33,7 @@
|
||||
}
|
||||
</style>
|
||||
<script lang="ts">
|
||||
import { countadd, countdel } from '@/api/base';
|
||||
import { useI18n } from '@/utils/i18n';
|
||||
import { uploadflie } from '@/utils/vod';
|
||||
import { defineComponent, onMounted } from "vue";
|
||||
@ -84,9 +85,11 @@ export default defineComponent({
|
||||
//之后就可以愉快的将blob数据发送至后端啦,可根据自己情况进行发送,我这里用的是axios
|
||||
// 第三个参数为文件名,可选填.
|
||||
const file = new File([blob], 'name.png',{type: "image/png"});
|
||||
countadd()
|
||||
const res = await uploadflie(file, (info: any) => {
|
||||
console.log(info);
|
||||
});
|
||||
countdel()
|
||||
ctx.emit("upload", res)
|
||||
})
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user