@jx3box/jx3box-ui 2.3.29 → 2.3.30

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jx3box/jx3box-ui",
3
- "version": "2.3.29",
3
+ "version": "2.3.30",
4
4
  "description": "JX3BOX Vue3 UI",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -46,6 +46,7 @@
46
46
  import JX3BOX from "@jx3box/jx3box-common/data/jx3box.json";
47
47
  import QrcodeVue from "qrcode.vue";
48
48
  import i18nMixin from "../../i18n/mixin";
49
+ import { copyText } from "../../utils";
49
50
 
50
51
  const { __imgPath } = JX3BOX;
51
52
  export default {
@@ -73,7 +74,6 @@ export default {
73
74
  return {
74
75
  apis: {
75
76
  qzone: 'https://sns.qzone.qq.com/cgi-bin/qzshare/cgi_qzshare_onekey?',
76
- qq: 'http://connect.qq.com/widget/shareqq/index.html?',
77
77
  wechat: '',
78
78
  weibo: 'https://service.weibo.com/share/share.php?',
79
79
  tieba: 'http://tieba.baidu.com/f/commit/share/openShareApi?'
@@ -125,7 +125,6 @@ export default {
125
125
  qzone: this.shareToQzone,
126
126
  weibo: this.shareToWeibo,
127
127
  tieba: this.shareToTieba,
128
- qq: this.shareToQQ,
129
128
  }
130
129
  },
131
130
  iconPath() {
@@ -150,12 +149,6 @@ export default {
150
149
  + `&desc=${this.meta?.desc || ''}`
151
150
  + `&pics=${this.pic}`;
152
151
  },
153
- shareToQQ: function (){
154
- return this.apis['qq']
155
- + `url=${this.url}`
156
- + `&title=${this.title}`
157
- + `&pics=${this.pic}`;
158
- },
159
152
  shareToTieba: function (){
160
153
  return this.apis['tieba']
161
154
  + `url=${this.url}`
@@ -165,6 +158,10 @@ export default {
165
158
  + `&pic=${this.pic}`;
166
159
  },
167
160
  share: function (val){
161
+ if (val === "qq") {
162
+ copyText(`【${this.title}】 ${this.url.href}`);
163
+ return;
164
+ }
168
165
  window.open(this.urls[val](), "_blank")
169
166
  }
170
167
  },