From 87fc177c84b02fbe7ab698832f3aaec903fe6f79 Mon Sep 17 00:00:00 2001
From: zhaotoday <729234283@qq.com>
Date: Mon, 23 Jul 2018 18:44:18 +0830
Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/components/Uploader/index.vue | 9 ++++++---
src/utils/helpers/base.js | 10 ++++++++++
2 files changed, 16 insertions(+), 3 deletions(-)
create mode 100644 src/utils/helpers/base.js
diff --git a/src/components/Uploader/index.vue b/src/components/Uploader/index.vue
index f14e1aeb..01335ca3 100644
--- a/src/components/Uploader/index.vue
+++ b/src/components/Uploader/index.vue
@@ -11,7 +11,7 @@
:on-exceeded-size="handleMaxSize"
:before-upload="handleBeforeUpload"
:headers="headers"
- action="//localhost:3002/apis/v1/files">
+ :action="`${consts.API_URL}/files`">
@@ -32,11 +32,14 @@