diff --git a/ZR.Vue/.env.development b/ZR.Vue/.env.development index e3d7f723..8616d917 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 d54f5328..7158a656 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 4504612d..14b15592 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 b4f4adb2..c08d9f5d 100644 --- a/ZR.Vue/src/components/FileUpload/index.vue +++ b/ZR.Vue/src/components/FileUpload/index.vue @@ -1,8 +1,8 @@