From a165ff007835d836a21ab7bf461070a112482ec8 Mon Sep 17 00:00:00 2001 From: XaoLi717 <144221124+XaoLi717@users.noreply.github.com> Date: Thu, 17 Oct 2024 16:17:53 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=87=E4=BB=B6=E4=B8=8A=E4=BC=A0=E9=83=A8?= =?UTF-8?q?=E7=BD=B2=E7=89=88=E6=9C=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .env | 1 + src/components/UploadFile/src/UploadFile.vue | 4 +++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/.env b/.env index 89e3388..f7bb43c 100644 --- a/.env +++ b/.env @@ -25,6 +25,7 @@ VITE_AI_URL = http://192.168.1.25:8000 #Onlyoffice相关 VITE_ONLY_URL = http://140.143.164.40:48080 +; VITE_ONLY_URL = http://192.168.1.15:48080 # 默认账户密码 VITE_APP_DEFAULT_LOGIN_TENANT = 君风科技 diff --git a/src/components/UploadFile/src/UploadFile.vue b/src/components/UploadFile/src/UploadFile.vue index baaab99..4ceb87c 100644 --- a/src/components/UploadFile/src/UploadFile.vue +++ b/src/components/UploadFile/src/UploadFile.vue @@ -165,7 +165,9 @@ const upload = async (myFile:any) => { } formData.append('file', myFile);//拿到的信息来加入form try { - await axios.post('${config.only_url}/admin-api/only/onlyof/update', formData, configs); + console.log("ok") + await axios.post(`${config.only_url}/admin-api/only/onlyof/update`, formData, configs); + console.log("ok") } catch (error) { console.error('Upload failed:', error); }