From ad5a620d1b8524de89198a381a5e7af7e8b704c7 Mon Sep 17 00:00:00 2001 From: zhangdi <1104545947@qq.com> Date: Mon, 27 Apr 2026 13:38:06 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AE=89=E7=8E=AF=E6=8E=A5=E5=8F=A3=E8=81=94?= =?UTF-8?q?=E8=B0=83?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/index/menu.js | 24 ++++++++++++------------ pages/safe/inspection.vue | 4 +++- pages/sanitation/gasInspection.vue | 4 +++- pages/sanitation/waterInspection.vue | 4 +++- 4 files changed, 21 insertions(+), 15 deletions(-) diff --git a/pages/index/menu.js b/pages/index/menu.js index adc0575..7f69e61 100644 --- a/pages/index/menu.js +++ b/pages/index/menu.js @@ -223,18 +223,18 @@ const menus = { { title: '安环管理', children: [ - { - key: "spotCheck", - title: "安全点检", - url: "../safe/spotCheck", - bgColor: '', - limit: 'RB2315', - icon: { - size: 20, - color: '#00b7ee', - type: '' - } - }, + // { + // key: "spotCheck", + // title: "安全点检", + // url: "../safe/spotCheck", + // bgColor: '', + // limit: 'RB2315', + // icon: { + // size: 20, + // color: '#00b7ee', + // type: '' + // } + // }, { key: "inspection", title: "安全巡检", diff --git a/pages/safe/inspection.vue b/pages/safe/inspection.vue index 3baf385..9b68716 100644 --- a/pages/safe/inspection.vue +++ b/pages/safe/inspection.vue @@ -137,9 +137,11 @@ export default { res.tempFilePaths.forEach((filePath) => { console.log("file-----------", filePath); console.log("options.baseURL------", options.baseURL); + const server_config = uni.getStorageSync("server-config") +console.log(999999,server_config) uni.uploadFile({ url: - options.baseURL + + server_config.rootUrl + "/blade-resource/oss/endpoint/put-file-attach", filePath: filePath, name: "file", diff --git a/pages/sanitation/gasInspection.vue b/pages/sanitation/gasInspection.vue index 712811b..6a12a87 100644 --- a/pages/sanitation/gasInspection.vue +++ b/pages/sanitation/gasInspection.vue @@ -98,6 +98,8 @@ export default { icon: 'none' }); } + const server_config = uni.getStorageSync("server-config") +console.log(999999,server_config) uni.chooseImage({ count: 9, // sizeType: ['compressed'], @@ -108,7 +110,7 @@ export default { }); res.tempFilePaths.forEach(filePath => { uni.uploadFile({ - url: options.baseURL + '/blade-resource/oss/endpoint/put-file-attach', + url: server_config.rootUrl + '/blade-resource/oss/endpoint/put-file-attach', filePath: filePath, name: 'file', header: { diff --git a/pages/sanitation/waterInspection.vue b/pages/sanitation/waterInspection.vue index 3d51cbc..276cdbb 100644 --- a/pages/sanitation/waterInspection.vue +++ b/pages/sanitation/waterInspection.vue @@ -123,10 +123,12 @@ export default { uni.showLoading({ title: "上传中,请稍候", }); + const server_config = uni.getStorageSync("server-config") +console.log(999999,server_config) res.tempFilePaths.forEach((filePath) => { uni.uploadFile({ url: - options.baseURL + + server_config.rootUrl + "/blade-resource/oss/endpoint/put-file-attach", filePath: filePath, name: "file",