mirror of https://github.com/halo-dev/halo
Fixed add to gallery error.
parent
8f5db967e3
commit
4e9b403bb0
|
@ -244,7 +244,7 @@ export default {
|
||||||
this.gallery['thumbnail'] = this.attachment.thumbPath
|
this.gallery['thumbnail'] = this.attachment.thumbPath
|
||||||
this.gallery['url'] = this.attachment.path
|
this.gallery['url'] = this.attachment.path
|
||||||
this.gallery['description'] = ''
|
this.gallery['description'] = ''
|
||||||
this.gallery['takeTime'] = ''
|
this.gallery['takeTime'] = new Date().getTime()
|
||||||
this.gallery['location'] = ''
|
this.gallery['location'] = ''
|
||||||
this.gallery['team'] = ''
|
this.gallery['team'] = ''
|
||||||
galleryApi.create(this.gallery).then(response => {
|
galleryApi.create(this.gallery).then(response => {
|
||||||
|
|
|
@ -83,11 +83,9 @@
|
||||||
<a-list-item-meta :description="item.description">
|
<a-list-item-meta :description="item.description">
|
||||||
<a
|
<a
|
||||||
slot="title"
|
slot="title"
|
||||||
:href="item.href"
|
>{{ item.content }}</a>
|
||||||
>{{ item.title }}</a>
|
|
||||||
<a-avatar
|
<a-avatar
|
||||||
slot="avatar"
|
slot="avatar"
|
||||||
:src="item.avatar"
|
|
||||||
size="large"
|
size="large"
|
||||||
/>
|
/>
|
||||||
</a-list-item-meta>
|
</a-list-item-meta>
|
||||||
|
@ -152,7 +150,8 @@ export default {
|
||||||
keyword: null
|
keyword: null
|
||||||
},
|
},
|
||||||
actions: [{ type: 'star-o', text: '156' }, { type: 'like-o', text: '156' }, { type: 'message', text: '2' }],
|
actions: [{ type: 'star-o', text: '156' }, { type: 'like-o', text: '156' }, { type: 'message', text: '2' }],
|
||||||
journals: {}
|
journals: [],
|
||||||
|
journal: {}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
created() {
|
created() {
|
||||||
|
|
|
@ -37,7 +37,7 @@
|
||||||
</a-tab-pane>
|
</a-tab-pane>
|
||||||
<a-tab-pane key="2">
|
<a-tab-pane key="2">
|
||||||
<span slot="tab">
|
<span slot="tab">
|
||||||
<a-icon type="database" />资源文件备份
|
<a-icon type="database" />数据库备份
|
||||||
</span>
|
</span>
|
||||||
<a-table
|
<a-table
|
||||||
:columns="columns"
|
:columns="columns"
|
||||||
|
|
Loading…
Reference in New Issue