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 @@