From 7fc19799283a031795277cf74634fbba3caf1086 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=AE=B8=E5=85=81=E6=9E=9E?= <3422692813@qq.com> Date: Fri, 21 Mar 2025 11:13:08 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .env.dev | 4 +- package.json | 1 + src/components/FileUpload/index.vue | 161 ++++++++++++------ src/utils/cos.js | 40 +++++ src/utils/cosUpload.js | 35 ++++ src/views/login.vue | 8 +- src/views/partner/file/file.vue | 246 +++++++++++++++++++++++----- 7 files changed, 393 insertions(+), 102 deletions(-) create mode 100644 src/utils/cos.js create mode 100644 src/utils/cosUpload.js diff --git a/.env.dev b/.env.dev index e72794c..1abce2e 100644 --- a/.env.dev +++ b/.env.dev @@ -5,8 +5,8 @@ ENV = 'development' VUE_APP_TITLE = "车联通"后台管理系统 # 芋道管理系统/开发环境 -# VUE_APP_BASE_API = 'http://localhost:48080' -VUE_APP_BASE_API = 'http://122.51.230.86:48080' +VUE_APP_BASE_API = 'http://localhost:48080' +#VUE_APP_BASE_API = 'http://122.51.230.86:48080' # 附件请求地址前缀 # VUE_APP_FILE_API = 'https://www.nuoyunr.com/minio/' VUE_APP_FILE_API = 'http://122.51.230.86:9000/' diff --git a/package.json b/package.json index 6bbda10..0815b78 100644 --- a/package.json +++ b/package.json @@ -50,6 +50,7 @@ "bpmn-js-token-simulation": "0.10.0", "clipboard": "2.0.8", "core-js": "^3.26.0", + "cos-js-sdk-v5": "^1.8.7", "crypto-js": "^4.0.0", "dayjs": "^1.11.12", "echarts": "^5.4.0", diff --git a/src/components/FileUpload/index.vue b/src/components/FileUpload/index.vue index 2147f8c..afd8501 100644 --- a/src/components/FileUpload/index.vue +++ b/src/components/FileUpload/index.vue @@ -1,26 +1,26 @@