diff --git a/src/api/mz/building.js b/src/api/mz/building.js index 05d6e8c..ddc2c15 100644 --- a/src/api/mz/building.js +++ b/src/api/mz/building.js @@ -8,7 +8,7 @@ export function listBuilding(query) { .map(([key, value]) => `${encodeURIComponent(key)}=${encodeURIComponent(value)}`) .join('&'); - return fetch(`${process.env.VUE_APP_BASE_API}/mz/building/list?${queryString}`, { + return fetch(`/mz/building/list?${queryString}`, { headers: { 'Authorization': 'Bearer ' + getToken(), 'Content-Type': 'application/json;charset=utf-8' diff --git a/src/components/Editor/index.vue b/src/components/Editor/index.vue index 8981d76..4cbfb06 100644 --- a/src/components/Editor/index.vue +++ b/src/components/Editor/index.vue @@ -60,7 +60,7 @@ export default { }, data() { return { - uploadUrl: process.env.VUE_APP_BASE_API + "/common/upload", // 上传的图片服务器地址 + uploadUrl: "/common/upload", // 上传的图片服务器地址 headers: { Authorization: "Bearer " + getToken() },