mirror of https://github.com/halo-dev/halo-admin
新增腾讯云oss文件上传下载功能
parent
24d9b2169a
commit
fb6f617648
|
@ -91,6 +91,10 @@ attachmentApi.type = {
|
||||||
BAIDUYUN: {
|
BAIDUYUN: {
|
||||||
type: 'baiduyun',
|
type: 'baiduyun',
|
||||||
text: '百度云'
|
text: '百度云'
|
||||||
|
},
|
||||||
|
TENCENTYUN: {
|
||||||
|
type: 'tencentyun',
|
||||||
|
text: '百度云'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -423,6 +423,47 @@
|
||||||
<a-input v-model="options.oss_baiduyun_style_rule" />
|
<a-input v-model="options.oss_baiduyun_style_rule" />
|
||||||
</a-form-item>
|
</a-form-item>
|
||||||
</div>
|
</div>
|
||||||
|
<div
|
||||||
|
class="tencentyunForm"
|
||||||
|
v-show="tencentyunFormHidden"
|
||||||
|
>
|
||||||
|
<a-form-item
|
||||||
|
label="Bucket:"
|
||||||
|
:wrapper-col="wrapperCol"
|
||||||
|
>
|
||||||
|
<a-input v-model="options.oss_tencentyun_bucket_name" />
|
||||||
|
</a-form-item>
|
||||||
|
<a-form-item
|
||||||
|
label="区域:"
|
||||||
|
:wrapper-col="wrapperCol"
|
||||||
|
>
|
||||||
|
<a-select v-model="oss_tencentyun_region">
|
||||||
|
<a-select-option value="ap-beijing-1">北京一区</a-select-option>
|
||||||
|
<a-select-option value="ap-beijing">北京</a-select-option>
|
||||||
|
<a-select-option value="ap-shanghai">上海(华东)</a-select-option>
|
||||||
|
<a-select-option value="ap-guangzhou">广州(华南)</a-select-option>
|
||||||
|
<a-select-option value="ap-chengdu">成都(西南)</a-select-option>
|
||||||
|
<a-select-option value="ap-chongqing">重庆</a-select-option>
|
||||||
|
</a-select>
|
||||||
|
<a-form-item
|
||||||
|
label="SecretId:"
|
||||||
|
:wrapper-col="wrapperCol"
|
||||||
|
>
|
||||||
|
<a-input v-model="options.oss_tencentyun_access_key" />
|
||||||
|
</a-form-item>
|
||||||
|
<a-form-item
|
||||||
|
label="SecretKey:"
|
||||||
|
:wrapper-col="wrapperCol"
|
||||||
|
>
|
||||||
|
<a-input v-model="options.oss_tencentyun_access_secret" />
|
||||||
|
</a-form-item>
|
||||||
|
<a-form-item
|
||||||
|
label="缩略图处理策略:"
|
||||||
|
:wrapper-col="wrapperCol"
|
||||||
|
>
|
||||||
|
<a-input v-model="options.oss_tencentyun_style_rule" />
|
||||||
|
</a-form-item>
|
||||||
|
</div>
|
||||||
<a-form-item>
|
<a-form-item>
|
||||||
<a-button
|
<a-button
|
||||||
type="primary"
|
type="primary"
|
||||||
|
@ -635,6 +676,7 @@ export default {
|
||||||
qnyunFormHidden: false,
|
qnyunFormHidden: false,
|
||||||
aliyunFormHidden: false,
|
aliyunFormHidden: false,
|
||||||
baiduyunFormHidden: false,
|
baiduyunFormHidden: false,
|
||||||
|
tencentyunFormHidden: false,
|
||||||
logoDrawerVisible: false,
|
logoDrawerVisible: false,
|
||||||
faviconDrawerVisible: false,
|
faviconDrawerVisible: false,
|
||||||
options: [],
|
options: [],
|
||||||
|
@ -667,30 +709,42 @@ export default {
|
||||||
this.qnyunFormHidden = false
|
this.qnyunFormHidden = false
|
||||||
this.aliyunFormHidden = false
|
this.aliyunFormHidden = false
|
||||||
this.baiduyunFormHidden = false
|
this.baiduyunFormHidden = false
|
||||||
|
this.tencentyunFormHidden = false
|
||||||
break
|
break
|
||||||
case 'UPYUN':
|
case 'UPYUN':
|
||||||
this.upyunFormHidden = true
|
this.upyunFormHidden = true
|
||||||
this.qnyunFormHidden = false
|
this.qnyunFormHidden = false
|
||||||
this.aliyunFormHidden = false
|
this.aliyunFormHidden = false
|
||||||
this.baiduyunFormHidden = false
|
this.baiduyunFormHidden = false
|
||||||
|
this.tencentyunFormHidden = false
|
||||||
break
|
break
|
||||||
case 'QNYUN':
|
case 'QNYUN':
|
||||||
this.qnyunFormHidden = true
|
this.qnyunFormHidden = true
|
||||||
this.upyunFormHidden = false
|
this.upyunFormHidden = false
|
||||||
this.aliyunFormHidden = false
|
this.aliyunFormHidden = false
|
||||||
this.baiduyunFormHidden = false
|
this.baiduyunFormHidden = false
|
||||||
|
this.tencentyunFormHidden = false
|
||||||
break
|
break
|
||||||
case 'ALIYUN':
|
case 'ALIYUN':
|
||||||
this.aliyunFormHidden = true
|
this.aliyunFormHidden = true
|
||||||
this.qnyunFormHidden = false
|
this.qnyunFormHidden = false
|
||||||
this.upyunFormHidden = false
|
this.upyunFormHidden = false
|
||||||
this.baiduyunFormHidden = false
|
this.baiduyunFormHidden = false
|
||||||
|
this.tencentyunFormHidden = false
|
||||||
break
|
break
|
||||||
case 'BAIDUYUN':
|
case 'BAIDUYUN':
|
||||||
this.aliyunFormHidden = false
|
this.aliyunFormHidden = false
|
||||||
this.qnyunFormHidden = false
|
this.qnyunFormHidden = false
|
||||||
this.upyunFormHidden = false
|
this.upyunFormHidden = false
|
||||||
this.baiduyunFormHidden = true
|
this.baiduyunFormHidden = true
|
||||||
|
this.tencentyunFormHidden = false
|
||||||
|
break
|
||||||
|
case 'TENCENTYUN':
|
||||||
|
this.aliyunFormHidden = false
|
||||||
|
this.qnyunFormHidden = false
|
||||||
|
this.upyunFormHidden = false
|
||||||
|
this.baiduyunFormHidden = false
|
||||||
|
this.tencentyunFormHidden = true
|
||||||
break
|
break
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in New Issue