diff --git a/src/components/upload/config.js b/src/components/upload/config.js new file mode 100644 index 0000000..f8a1254 --- /dev/null +++ b/src/components/upload/config.js @@ -0,0 +1,15 @@ +/** + * 阿里云oss配置 + * */ + + export default { + // oss账号信息 + config: { + region: 'oss-cn-shenzhen', + accessKeyId: 'LTAI4FzqQHnk4rozqLZ8jCNj', + accessKeySecret: 'mveW7B1OyFoKUkHm8WsxmrjHmkJWHq', + bucket: 'huoran' + }, + // 上传成功url前置部分(成功回调没有返回url) + preUrl: 'https://huoran.oss-cn-shenzhen.aliyuncs.com/' +} \ No newline at end of file diff --git a/src/components/upload/index.vue b/src/components/upload/index.vue index 7493705..a33f14a 100644 --- a/src/components/upload/index.vue +++ b/src/components/upload/index.vue @@ -29,7 +29,8 @@