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);
         }