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'; 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({ App({
onLaunch: function () {}, onLaunch: function () {},
onShow: function () { onShow: function () {

View File

@ -2,10 +2,9 @@ import {
setStorage, setStorage,
getStorage getStorage
} from '~/utils/storage' } from '~/utils/storage'
import {
// export const ServerBasePath = 'http://localhost:8888/api/'; ServerBasePath
// export const ServerBasePath = 'http://192.168.1.102:8888/api/'; } from '~/app'
export const ServerBasePath = 'http://shop.api.aerwen.net/api/';
// 网络请求封装 // 网络请求封装
export function request(option) { export function request(option) {