Refactor OptionForm.vue.

pull/3445/head
ruibaby 2019-04-29 16:48:12 +08:00
parent 72c3977252
commit c15729b6b8
1 changed files with 8 additions and 14 deletions

View File

@ -123,7 +123,6 @@
> >
<a-input <a-input
type="number" type="number"
defaultValue="10"
v-model="options.post_index_page_size" v-model="options.post_index_page_size"
/> />
</a-form-item> </a-form-item>
@ -133,7 +132,6 @@
> >
<a-input <a-input
type="number" type="number"
defaultValue="10"
v-model="options.rss_page_size" v-model="options.rss_page_size"
/> />
</a-form-item> </a-form-item>
@ -143,7 +141,6 @@
> >
<a-input <a-input
type="number" type="number"
defaultValue="200"
v-model="options.post_summary_length" v-model="options.post_summary_length"
/> />
</a-form-item> </a-form-item>
@ -165,7 +162,6 @@
:wrapper-col="wrapperCol" :wrapper-col="wrapperCol"
> >
<a-select <a-select
defaultValue="mm"
v-model="options.comment_gavatar_default" v-model="options.comment_gavatar_default"
> >
<a-select-option value="mm">默认</a-select-option> <a-select-option value="mm">默认</a-select-option>
@ -213,7 +209,6 @@
> >
<a-input <a-input
type="number" type="number"
defaultValue="10"
v-model="options.comment_page_size" v-model="options.comment_page_size"
/> />
</a-form-item> </a-form-item>
@ -251,7 +246,6 @@
:wrapper-col="wrapperCol" :wrapper-col="wrapperCol"
> >
<a-select <a-select
defaultValue="local"
@change="handleAttachChange" @change="handleAttachChange"
v-model="options.attachment_type" v-model="options.attachment_type"
> >
@ -321,7 +315,6 @@
:wrapper-col="wrapperCol" :wrapper-col="wrapperCol"
> >
<a-select <a-select
defaultValue="auto"
v-model="options.oss_qiniu_zone" v-model="options.oss_qiniu_zone"
> >
<a-select-option value="auto">自动选择</a-select-option> <a-select-option value="auto">自动选择</a-select-option>
@ -576,6 +569,7 @@ export default {
loadOptions() { loadOptions() {
optionApi.listAll().then(response => { optionApi.listAll().then(response => {
this.options = response.data.data this.options = response.data.data
this.handleAttachChange(this.options['attachment_type'])
}) })
}, },
handleSaveOptions() { handleSaveOptions() {