Przeglądaj źródła

修改复制bug

ymm 4 lat temu
rodzic
commit
f670a8bd26
1 zmienionych plików z 2 dodań i 1 usunięć
  1. 2 1
      microserviceUserH5/vcloud/actFissionShare.html

+ 2 - 1
microserviceUserH5/vcloud/actFissionShare.html

@@ -318,7 +318,7 @@
                         this.$toast.clear();
                         if (res.status === 0) {
                             //此处为点击的dom的类名
-                            this.code = res.data[0].code;
+                            this.code = res.data;
                             console.log(this.code);
 
                             try {
@@ -329,6 +329,7 @@
                                 document.execCommand('Copy') // 执行浏览器复制命令
                                 input.style.display = 'none'
                                 input.remove()
+                                console.log(this.code);
                                 this.$dialog.alert({
                                     message: '复制成功'
                                 });