mirror of https://github.com/halo-dev/halo
Encode when copy attachment url.
parent
d1df712116
commit
df8de80f03
|
@ -260,7 +260,7 @@ export default {
|
||||||
this.editable = false
|
this.editable = false
|
||||||
},
|
},
|
||||||
handleCopyNormalLink() {
|
handleCopyNormalLink() {
|
||||||
const text = `${this.attachment.path}`
|
const text = `${encodeURI(this.attachment.path)}`
|
||||||
this.$copyText(text)
|
this.$copyText(text)
|
||||||
.then(message => {
|
.then(message => {
|
||||||
console.log('copy', message)
|
console.log('copy', message)
|
||||||
|
@ -272,7 +272,7 @@ export default {
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
handleCopyMarkdownLink() {
|
handleCopyMarkdownLink() {
|
||||||
const text = ``
|
const text = `})`
|
||||||
this.$copyText(text)
|
this.$copyText(text)
|
||||||
.then(message => {
|
.then(message => {
|
||||||
console.log('copy', message)
|
console.log('copy', message)
|
||||||
|
|
Loading…
Reference in New Issue