From 69e12c242dd13c2df2ddd205dc9eba5fd691c1b2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E2=80=9C13713575202=E2=80=9D?= <“1345916905@qq.com”> Date: Wed, 16 Apr 2025 14:10:04 +0800 Subject: [PATCH] =?UTF-8?q?=E5=9B=BE=E7=89=87=E4=B8=8A=E4=BC=A0=E5=9C=B0?= =?UTF-8?q?=E5=9D=80=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/FileUpload/index.vue | 2 +- src/components/ImageUpload/index.vue | 2 +- src/views/iot/product/product-firmware.vue | 2 +- src/views/trace/components/EditPage/Edit/upload.js | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/components/FileUpload/index.vue b/src/components/FileUpload/index.vue index 1a9366d..ea132b1 100644 --- a/src/components/FileUpload/index.vue +++ b/src/components/FileUpload/index.vue @@ -74,7 +74,7 @@ export default { data() { return { baseUrl: process.env.VUE_APP_BASE_API, - uploadFileUrl: process.env.VUE_APP_BASE_API + '/iot/tool/upload', // 上传文件服务器地址 + uploadFileUrl: process.env.VUE_APP_BASE_API + '/common/upload', // 上传文件服务器地址 headers: { Authorization: 'Bearer ' + getToken(), }, diff --git a/src/components/ImageUpload/index.vue b/src/components/ImageUpload/index.vue index 13a8286..bbae7f9 100644 --- a/src/components/ImageUpload/index.vue +++ b/src/components/ImageUpload/index.vue @@ -94,7 +94,7 @@ export default { dialogVisible: false, hideUpload: false, baseUrl: process.env.VUE_APP_BASE_API, - uploadImgUrl: process.env.VUE_APP_BASE_API + '/iot/tool/upload', // 上传的图片服务器地址 + uploadImgUrl: process.env.VUE_APP_BASE_API + '/common/upload', // 上传的图片服务器地址 headers: { Authorization: 'Bearer ' + getToken(), }, diff --git a/src/views/iot/product/product-firmware.vue b/src/views/iot/product/product-firmware.vue index ce78e13..99946d5 100644 --- a/src/views/iot/product/product-firmware.vue +++ b/src/views/iot/product/product-firmware.vue @@ -190,7 +190,7 @@ export default { Authorization: 'Bearer ' + getToken(), }, // 上传的地址 - url: process.env.VUE_APP_BASE_API + '/iot/tool/upload', + url: process.env.VUE_APP_BASE_API + '/common/upload', // 上传的文件列表 fileList: [], }, diff --git a/src/views/trace/components/EditPage/Edit/upload.js b/src/views/trace/components/EditPage/Edit/upload.js index 142d995..ea8871e 100644 --- a/src/views/trace/components/EditPage/Edit/upload.js +++ b/src/views/trace/components/EditPage/Edit/upload.js @@ -3,7 +3,7 @@ import request from '@/utils/request'; export default function upload(formData) { return request({ - url: '/iot/tool/upload', + url: '/common/upload', method: 'post', headers: { 'Content-Type': 'multipart/form-data', // 覆盖默认设置