This commit is contained in:
2020-12-02 18:09:48 +08:00
parent eaf4f5efb7
commit fc95b0e625
9 changed files with 10 additions and 10 deletions

View File

@@ -195,7 +195,7 @@ export default defineComponent({
if(index == 1){
url = `https://service.weibo.com/share/share.php?url=${res.shareUrl}&appkey=2754574056&language=zh_cn&pic=${res.shareImg}&searchPic=true&title=${res.shareTitle}`
}else {
url = `https://www.facebook.com/sharer.php?title=${res.shareTitle}&u=${res.shareUrl}`
url = `https://www.facebook.com/sharer.php?title=${encodeURIComponent(res.shareTitle)}&u=${res.shareUrl}`
}
window.open(url, "_blank")