From 7b8aa82de1430068a28a765544f5f2ff28389df1 Mon Sep 17 00:00:00 2001 From: "AERWEN\\26795" <123456789a> Date: Wed, 11 Oct 2023 10:53:05 +0800 Subject: [PATCH] =?UTF-8?q?fixed=20=E4=BF=AE=E6=94=B9=E6=8E=A5=E5=8F=A3?= =?UTF-8?q?=E5=9C=B0=E5=9D=80=E4=BD=8D=E7=BD=AE=E4=B8=BAapp.js?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app.js | 4 ++++ services/_utils/request.js | 7 +++---- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/app.js b/app.js index e4bc139..2f0982d 100644 --- a/app.js +++ b/app.js @@ -1,5 +1,9 @@ import updateManager from './common/updateManager'; +// export const ServerBasePath = 'http://localhost:8888/api/'; +// export const ServerBasePath = 'http://192.168.1.102:8888/api/'; +export const ServerBasePath = 'http://shop.api.aerwen.net/api/'; + App({ onLaunch: function () {}, onShow: function () { diff --git a/services/_utils/request.js b/services/_utils/request.js index a41a232..aeb829d 100644 --- a/services/_utils/request.js +++ b/services/_utils/request.js @@ -2,10 +2,9 @@ import { setStorage, getStorage } from '~/utils/storage' - -// export const ServerBasePath = 'http://localhost:8888/api/'; -// export const ServerBasePath = 'http://192.168.1.102:8888/api/'; -export const ServerBasePath = 'http://shop.api.aerwen.net/api/'; +import { + ServerBasePath +} from '~/app' // 网络请求封装 export function request(option) {