const DEFAULT_API_BASE_URL = "http://172.16.6.123:3001"; App({ onLaunch() { this.globalData = { apiBaseUrl: wx.getStorageSync("apiBaseUrl") || DEFAULT_API_BASE_URL, brand: {}, }; }, globalData: {}, });