From 53ec327c98fc7116645bf82b58a7f5f0f40a21b6 Mon Sep 17 00:00:00 2001 From: kylin L <452061493@qq.com> Date: Mon, 27 May 2024 15:45:59 +0800 Subject: [PATCH] =?UTF-8?q?=E7=8E=AF=E5=A2=83=E6=8F=90=E4=BA=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- main.js | 3 ++- pages/index/index.vue | 1 - utils/config.js | 3 ++- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/main.js b/main.js index fdae114..dcd8d73 100644 --- a/main.js +++ b/main.js @@ -15,7 +15,8 @@ Vue.prototype.$api = api // $http.baseUrl = 'http://146.56.223.227:85' $http.baseUrl = 'https://civildrill.com:9528' -// $http.baseUrl = 'http://localhost:85' + // $http.baseUrl = 'http://civildrill.com:85' +// $http.baseUrl = 'http://127.0.0.1:85' $http.beforeRequest = function(options) { uni.showLoading({ diff --git a/pages/index/index.vue b/pages/index/index.vue index b506004..7a95921 100644 --- a/pages/index/index.vue +++ b/pages/index/index.vue @@ -107,7 +107,6 @@ data: res } = await uni.$http.post('/small/customImage/listAll',{page:"home"}) if (!res.success) return uni.$showMsg() - res.data.forEach(item => { item.uploadPath = uni.$http.baseUrl + item.uploadPath if (item.position === "top") { diff --git a/utils/config.js b/utils/config.js index a3b259a..21ada7a 100755 --- a/utils/config.js +++ b/utils/config.js @@ -1,4 +1,5 @@ // let url_config = 'http://146.56.223.227:85/' let url_config = 'https://civildrill.com:9528/' -// let url_config = 'http://localhost:85/' + // let url_config = 'http://civildrill.com:85/' +// let url_config = 'http://127.0.0.1:85/' export default url_config \ No newline at end of file