File tree 3 files changed +9
-2
lines changed
3 files changed +9
-2
lines changed Original file line number Diff line number Diff line change @@ -57,6 +57,10 @@ module.exports = {
57
57
{
58
58
src : '~/plugins/lib-flexible.js' ,
59
59
mode : 'client'
60
+ } ,
61
+ {
62
+ src : '~/plugins/clipboard.js' ,
63
+ mode : 'client'
60
64
}
61
65
] ,
62
66
/*
Original file line number Diff line number Diff line change @@ -54,7 +54,6 @@ import dayjs from 'dayjs'
54
54
import ' highlight.js/scss/default.scss'
55
55
import ' github-markdown-css/github-markdown.css'
56
56
import ' highlight.js/styles/vs2015.css'
57
- import Clipboard from ' clipboard'
58
57
59
58
export default {
60
59
name: ' Detail' ,
@@ -133,7 +132,7 @@ export default {
133
132
},
134
133
mounted () {
135
134
this .$nextTick (() => {
136
- this .clipboard = new Clipboard (' .copy-btn' )
135
+ this .clipboard = new this. Clipboard (' .copy-btn' )
137
136
this .clipboard .on (' success' , (e ) => {
138
137
this .$toast .success (' 复制成功' )
139
138
})
Original file line number Diff line number Diff line change
1
+ import Vue from 'vue'
2
+ import Clipboard from 'clipboard'
3
+
4
+ Vue . prototype . Clipboard = Clipboard
You can’t perform that action at this time.
0 commit comments