yusheng пре 9 месеци
родитељ
комит
c25d883994
1 измењених фајлова са 3 додато и 2 уклоњено
  1. 3 2
      src/views/doc/components/info.vue

+ 3 - 2
src/views/doc/components/info.vue

@@ -159,8 +159,9 @@
         textArea.select();
         try {
           var successful = document.execCommand('copy');
-          var msg = successful ? 'successful' : 'unsuccessful';
-          console.log('Copying text command was ' + msg);
+        if(successful){
+           this.$message.success('复制成功')
+        }
         } catch (err) {
           console.error('Oops, unable to copy', err);
         }