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) {