14 lines
341 B
JavaScript
14 lines
341 B
JavaScript
const DEFAULT_API_BASE_URL = "http://localhost:3001";
|
|
const DEFAULT_BRAND_SLUG = "default-brand";
|
|
|
|
App({
|
|
onLaunch() {
|
|
this.globalData = {
|
|
apiBaseUrl: wx.getStorageSync("apiBaseUrl") || DEFAULT_API_BASE_URL,
|
|
brandSlug: wx.getStorageSync("brandSlug") || DEFAULT_BRAND_SLUG,
|
|
brand: {},
|
|
};
|
|
},
|
|
globalData: {},
|
|
});
|