diff --git a/package.json b/package.json index 72f160e..b43d785 100644 --- a/package.json +++ b/package.json @@ -44,6 +44,7 @@ "splitpanes": "2.4.1", "vant": "^2.13.9", "vue": "2.6.12", + "vue-clipboard2": "^0.3.3", "vue-count-to": "1.0.13", "vue-cropper": "0.5.5", "vue-router": "3.4.9", diff --git a/src/assets/images/app/copy.png b/src/assets/images/app/copy.png new file mode 100644 index 0000000..8de33ce Binary files /dev/null and b/src/assets/images/app/copy.png differ diff --git a/src/main.js b/src/main.js index 95200ba..3b67d8c 100644 --- a/src/main.js +++ b/src/main.js @@ -36,6 +36,7 @@ import ImagePreview from "@/components/ImagePreview" import DictTag from '@/components/DictTag' // 字典数据组件 import DictData from '@/components/DictData' +import VueClipboard from 'vue-clipboard2' // Vant 引用 import Vant from 'vant'; import 'vant/lib/index.css'; @@ -65,6 +66,7 @@ Vue.component('ImagePreview', ImagePreview) Vue.use(Vant) Vue.use(directive) Vue.use(plugins) +Vue.use(VueClipboard) DictData.install() /** diff --git a/src/views/app/project/list.vue b/src/views/app/project/list.vue index cc43b73..dad80fd 100644 --- a/src/views/app/project/list.vue +++ b/src/views/app/project/list.vue @@ -17,12 +17,13 @@
{{item.dkbm}}