diff --git a/src/api/onlineDeclartion/declareAddContent.js b/src/api/onlineDeclartion/declareAddContent.js index 39fb3ab..92ea6a0 100644 --- a/src/api/onlineDeclartion/declareAddContent.js +++ b/src/api/onlineDeclartion/declareAddContent.js @@ -76,7 +76,7 @@ export function exportData(data) { // 上传单个文件 export function uploadFile(data) { return request({ - url: '/file/upload', + url: "/common/upload", method: 'post', data: data, headers: { diff --git a/src/api/onlineDeclartion/enterpriseDirectory.js b/src/api/onlineDeclartion/enterpriseDirectory.js index c0adaeb..8b05a5b 100644 --- a/src/api/onlineDeclartion/enterpriseDirectory.js +++ b/src/api/onlineDeclartion/enterpriseDirectory.js @@ -1,11 +1,3 @@ -/* - * @Descripttion: - * @version: - * @Author: JC9527 - * @Date: 2024-04-09 16:55:04 - * @LastEditors: JC9527 - * @LastEditTime: 2024-04-09 17:21:46 - */ import request from '@/utils/request' // 查询企业名录列表 @@ -75,7 +67,7 @@ export function getTemplateRecord(query) { // 上传单个文件 export function uploadFile(data) { return request({ - url: process.env.VUE_APP_BASE_API + "/common/upload", + url: "/common/upload", method: 'post', data: data, // headers: { diff --git a/src/api/onlineDeclartion/pendingReview.js b/src/api/onlineDeclartion/pendingReview.js index 76f2d2c..7a14f02 100644 --- a/src/api/onlineDeclartion/pendingReview.js +++ b/src/api/onlineDeclartion/pendingReview.js @@ -48,7 +48,7 @@ export function approvalEdit(data) { // 上传单个文件 export function uploadFile(data) { return request({ - url: '/file/upload', + url: '/common/upload', method: 'post', data: data, headers: { diff --git a/src/api/onlineDeclartion/records.js b/src/api/onlineDeclartion/records.js index f376635..6013bc0 100644 --- a/src/api/onlineDeclartion/records.js +++ b/src/api/onlineDeclartion/records.js @@ -50,7 +50,7 @@ export function downloadData(data) { // 上传单个文件 export function uploadFile(data) { return request({ - url: '/file/upload', + url: '/common/upload', method: 'post', data: data, // headers: {