mirror of https://github.com/halo-dev/halo-admin
pull/59/head
parent
eb07f79f45
commit
a47a5dd5ff
|
@ -19,7 +19,10 @@
|
|||
>
|
||||
<div class="attach-detail-img">
|
||||
<div v-show="nonsupportPreviewVisible">此文件不支持预览</div>
|
||||
<a :href="attachment.path" target="_blank">
|
||||
<a
|
||||
:href="attachment.path"
|
||||
target="_blank"
|
||||
>
|
||||
<img
|
||||
:src="attachment.path"
|
||||
v-show="photoPreviewVisible"
|
||||
|
@ -288,8 +291,8 @@ export default {
|
|||
},
|
||||
handleAddToPhoto() {
|
||||
this.photo['name'] = this.attachment.name
|
||||
this.photo['thumbnail'] = this.attachment.thumbPath
|
||||
this.photo['url'] = this.attachment.path
|
||||
this.photo['thumbnail'] = encodeURI(this.attachment.thumbPath)
|
||||
this.photo['url'] = encodeURI(this.attachment.path)
|
||||
this.photo['takeTime'] = new Date().getTime()
|
||||
photoApi.create(this.photo).then(response => {
|
||||
this.$message.success('添加成功!')
|
||||
|
|
Loading…
Reference in New Issue