fixed 修改接口地址位置为app.js

This commit is contained in:
AERWEN\26795 2023-10-11 10:53:05 +08:00
parent 2ccc3fc39b
commit 7b8aa82de1
2 changed files with 7 additions and 4 deletions

4
app.js
View File

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

View File

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