Browse Source

Merge pull request #1 from halo-dev/dev

Dev
pull/36/head
WangYa 5 years ago committed by GitHub
parent
commit
1aa5092ad3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      src/api/attachment.js
  2. 46
      src/views/system/OptionForm.vue

4
src/api/attachment.js

@ -87,6 +87,10 @@ attachmentApi.type = {
ALIYUN: {
type: 'aliyun',
text: '阿里云'
},
BAIDUYUN: {
type: 'baiduyun',
text: '百度云'
}
}

46
src/views/system/OptionForm.vue

@ -388,6 +388,41 @@
<a-input v-model="options.oss_aliyun_style_rule" />
</a-form-item>
</div>
<div
class="baiduyunForm"
v-show="baiduyunFormHidden"
>
<a-form-item
label="Bucket:"
:wrapper-col="wrapperCol"
>
<a-input v-model="options.oss_baiduyun_bucket_name" />
</a-form-item>
<a-form-item
label="EndPoint(地域节点):"
:wrapper-col="wrapperCol"
>
<a-input v-model="options.oss_baiduyun_endpoint" />
</a-form-item>
<a-form-item
label="Access Key:"
:wrapper-col="wrapperCol"
>
<a-input v-model="options.oss_baiduyun_access_key" />
</a-form-item>
<a-form-item
label="Access Secret:"
:wrapper-col="wrapperCol"
>
<a-input v-model="options.oss_baiduyun_access_secret" />
</a-form-item>
<a-form-item
label="缩略图处理策略:"
:wrapper-col="wrapperCol"
>
<a-input v-model="options.oss_baiduyun_style_rule" />
</a-form-item>
</div>
<a-form-item>
<a-button
type="primary"
@ -599,6 +634,7 @@ export default {
upyunFormHidden: false,
qnyunFormHidden: false,
aliyunFormHidden: false,
baiduyunFormHidden: false,
logoDrawerVisible: false,
faviconDrawerVisible: false,
options: [],
@ -630,21 +666,31 @@ export default {
this.upyunFormHidden = false
this.qnyunFormHidden = false
this.aliyunFormHidden = false
this.baiduyunFormHidden = false
break
case 'UPYUN':
this.upyunFormHidden = true
this.qnyunFormHidden = false
this.aliyunFormHidden = false
this.baiduyunFormHidden = false
break
case 'QNYUN':
this.qnyunFormHidden = true
this.upyunFormHidden = false
this.aliyunFormHidden = false
this.baiduyunFormHidden = false
break
case 'ALIYUN':
this.aliyunFormHidden = true
this.qnyunFormHidden = false
this.upyunFormHidden = false
this.baiduyunFormHidden = false
break
case 'BAIDUYUN':
this.aliyunFormHidden = false
this.qnyunFormHidden = false
this.upyunFormHidden = false
this.baiduyunFormHidden = true
break
}
},

Loading…
Cancel
Save