From ab6e99d72141783c46cf7b57eba802dd87a1feb6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=B8=8D=E5=81=9A=E7=A0=81=E5=86=9C?= <599854767@qq.com> Date: Sun, 19 Dec 2021 12:36:16 +0800 Subject: [PATCH] =?UTF-8?q?=E4=B8=8A=E4=BC=A0=E6=96=B0=E5=A2=9E=E8=BF=9B?= =?UTF-8?q?=E5=BA=A6=E6=98=BE=E7=A4=BA=E3=80=81=E7=8E=AF=E5=A2=83=E5=8F=98?= =?UTF-8?q?=E9=87=8F=E6=96=B0=E5=A2=9E=E9=BB=98=E8=AE=A4=E4=B8=8A=E4=BC=A0?= =?UTF-8?q?=E5=9C=B0=E5=9D=80=E9=85=8D=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ZR.Vue/.env.development | 3 ++ ZR.Vue/.env.production | 3 ++ ZR.Vue/.env.staging | 3 ++ ZR.Vue/src/components/FileUpload/index.vue | 34 +++++++++++++++------ ZR.Vue/src/components/UploadImage/index.vue | 28 +++++++++++------ ZR.Vue/src/main.js | 2 +- 6 files changed, 53 insertions(+), 20 deletions(-) diff --git a/ZR.Vue/.env.development b/ZR.Vue/.env.development index e3d7f72..8616d91 100644 --- a/ZR.Vue/.env.development +++ b/ZR.Vue/.env.development @@ -9,3 +9,6 @@ VUE_APP_BASE_API = '/dev-api' # 路由前缀 VUE_APP_ROUTER_PREFIX = '/' + +# 默认上传地址 +VUE_APP_UPLOAD_URL = '/Common/UploadFile' \ No newline at end of file diff --git a/ZR.Vue/.env.production b/ZR.Vue/.env.production index d54f532..7158a65 100644 --- a/ZR.Vue/.env.production +++ b/ZR.Vue/.env.production @@ -9,3 +9,6 @@ VUE_APP_BASE_API = '/prod-api' # 路由前缀 VUE_APP_ROUTER_PREFIX = '/' + +# 默认上传地址 +VUE_APP_UPLOAD_URL = '/Common/UploadFile' diff --git a/ZR.Vue/.env.staging b/ZR.Vue/.env.staging index 4504612..14b1559 100644 --- a/ZR.Vue/.env.staging +++ b/ZR.Vue/.env.staging @@ -9,3 +9,6 @@ VUE_APP_BASE_API = '/stage-api' # 路由前缀 VUE_APP_ROUTER_PREFIX = '/' + +# 默认上传地址 +VUE_APP_UPLOAD_URL = '/Common/UploadFile' \ No newline at end of file diff --git a/ZR.Vue/src/components/FileUpload/index.vue b/ZR.Vue/src/components/FileUpload/index.vue index b4f4adb..c08d9f5 100644 --- a/ZR.Vue/src/components/FileUpload/index.vue +++ b/ZR.Vue/src/components/FileUpload/index.vue @@ -1,8 +1,8 @@