|
@@ -341,6 +341,7 @@ import loadList from '@/components/loadList';
|
|
import { fileKeyToUrl } from '@/plugins/file-center.js';
|
|
import { fileKeyToUrl } from '@/plugins/file-center.js';
|
|
import Verify from '@/components/verifition/Verify';
|
|
import Verify from '@/components/verifition/Verify';
|
|
import lottie from '@/components/lottie';
|
|
import lottie from '@/components/lottie';
|
|
|
|
+import { writeToClipboard } from '@/plugins/plugins.js';
|
|
export default {
|
|
export default {
|
|
props: {
|
|
props: {
|
|
operateActivityId: {
|
|
operateActivityId: {
|
|
@@ -757,16 +758,26 @@ export default {
|
|
if (this.$userAgent.isSzx || this.$userAgent.isSzxBrowser) {
|
|
if (this.$userAgent.isSzx || this.$userAgent.isSzxBrowser) {
|
|
this.$native.share(shareInfo);
|
|
this.$native.share(shareInfo);
|
|
} else {
|
|
} else {
|
|
- this.$copyText(res.data.link).then(
|
|
|
|
- (e) => {
|
|
|
|
|
|
+ writeToClipboard(
|
|
|
|
+ res.data.link,
|
|
|
|
+ () => {
|
|
setTimeout(() => {
|
|
setTimeout(() => {
|
|
this.$toast('链接复制成功');
|
|
this.$toast('链接复制成功');
|
|
});
|
|
});
|
|
},
|
|
},
|
|
- (e) => {
|
|
|
|
- setTimeout(() => {
|
|
|
|
- this.$toast('链接复制失败');
|
|
|
|
- });
|
|
|
|
|
|
+ () => {
|
|
|
|
+ this.$copyText(res.data.link).then(
|
|
|
|
+ (e) => {
|
|
|
|
+ setTimeout(() => {
|
|
|
|
+ this.$toast('链接复制成功');
|
|
|
|
+ });
|
|
|
|
+ },
|
|
|
|
+ (e) => {
|
|
|
|
+ setTimeout(() => {
|
|
|
|
+ this.$toast('链接复制失败');
|
|
|
|
+ });
|
|
|
|
+ },
|
|
|
|
+ );
|
|
},
|
|
},
|
|
);
|
|
);
|
|
}
|
|
}
|