diff --git a/.env.production b/.env.production index dbe0fa6..4e6f237 100644 --- a/.env.production +++ b/.env.production @@ -5,4 +5,4 @@ VUE_APP_TITLE = 苏州工业园区工业上楼项目系统 ENV = 'production' # 苏州工业园区工业上楼项目系统/生产环境 -VUE_APP_BASE_API = '/prod-api' +VUE_APP_BASE_API = 'http://39.101.188.84:7071' diff --git a/src/api/ManageApi/index.js b/src/api/ManageApi/index.js index aa9e2dc..458e8da 100644 --- a/src/api/ManageApi/index.js +++ b/src/api/ManageApi/index.js @@ -1,6 +1,6 @@ // src/api/ManageApi/index.js import request from '@/utils/request'; -import { getToken } from '@/utils/auth'; +import { getToken } from '@/utils/auth'; // 企业--基本信息==下载模板(基本信息模板) @@ -10,7 +10,7 @@ export function exportBasicInformationTemplate() { method: 'post', responseType: 'blob', headers: { - 'Authorization': `Bearer ${getToken()}` + 'Authorization': `Bearer ${getToken()}` } }); } @@ -50,7 +50,7 @@ export function updateBasicInformation(data) { return request({ url: `/gysl/basicInformation/edit`, method: 'post', - data + data }); } // 基本信息的导出功能 @@ -75,14 +75,14 @@ export function updateProgrammeInformation(data) { //根据主键来查询单条数据 export function getProgrammeInformationById(quey) { return request({ - url: '/gysl/planInformation/selectAll', + url: '/gysl/planInformation/selectAll', method: 'get', params: quey }); } -// 项目评价清单 +// 项目评价清单 // 分页查询项目评价清单 export function getProjectEvaluationList(params) { return request({ @@ -171,7 +171,7 @@ export function getAllElements(params) { return request({ url: '/gysl/mx/page', method: 'get', - params + params }); } @@ -365,7 +365,7 @@ export function addjzxx(data) { export function deletejzxx(idList) { console.log('Deleting buildings with IDs:', idList); // 调试信息 return request({ - url: '/gysl/buildingInformation/delete', + url: '/gysl/buildingInformation/delete', method: 'delete', params: { idList: idList.join(',') } // 将数组转换为逗号分隔的字符串 }); @@ -526,4 +526,4 @@ export function getclglPage(data) { method:'post', data }) -} \ No newline at end of file +}