From 6d234f57cccb66be365c2e9faf7847186709a304 Mon Sep 17 00:00:00 2001 From: ruibaby Date: Wed, 28 Aug 2019 10:46:58 +0800 Subject: [PATCH] Fixed file upload handler. --- src/views/system/OptionForm.vue | 66 +++++++++++++++++++-------------- 1 file changed, 39 insertions(+), 27 deletions(-) diff --git a/src/views/system/OptionForm.vue b/src/views/system/OptionForm.vue index 6b076366..bf954f6d 100644 --- a/src/views/system/OptionForm.vue +++ b/src/views/system/OptionForm.vue @@ -376,11 +376,17 @@ + + +
+ + +
- + - + - + - + + + + - +
- + - + 北京一区 北京 上海(华东) @@ -479,19 +497,13 @@ label="Secret Id:" :wrapper-col="wrapperCol" > - + - - - - +
@@ -872,58 +884,58 @@ export default { } break case 'BAIDUYUN': - if (!this.options.oss_baiduyun_bucket_name) { + if (!this.options.bos_baiduyun_bucket_name) { this.$notification['error']({ message: '提示', description: 'Bucket 不能为空!' }) return } - if (!this.options.oss_baiduyun_endpoint) { + if (!this.options.bos_baiduyun_endpoint) { this.$notification['error']({ message: '提示', description: 'EndPoint(地域节点) 不能为空!' }) return } - if (!this.options.oss_baiduyun_access_key) { + if (!this.options.bos_baiduyun_access_key) { this.$notification['error']({ message: '提示', description: 'Access Key 不能为空!' }) return } - if (!this.options.oss_baiduyun_access_secret) { + if (!this.options.bos_baiduyun_secret_key) { this.$notification['error']({ message: '提示', - description: 'Access Secret 不能为空!' + description: 'Secret Key 不能为空!' }) return } break case 'TENCENTYUN': - if (!this.options.oss_tencentyun_bucket_name) { + if (!this.options.cos_tencentyun_bucket_name) { this.$notification['error']({ message: '提示', description: 'Bucket 不能为空!' }) return } - if (!this.options.oss_tencentyun_region) { + if (!this.options.cos_tencentyun_region) { this.$notification['error']({ message: '提示', description: '区域不能为空!' }) return } - if (!this.options.oss_tencentyun_access_key) { + if (!this.options.cos_tencentyun_secret_id) { this.$notification['error']({ message: '提示', description: 'Secret Id 不能为空!' }) return } - if (!this.options.oss_tencentyun_access_secret) { + if (!this.options.cos_tencentyun_secret_key) { this.$notification['error']({ message: '提示', description: 'Secret Key 不能为空!'