feat: 建立小程序品牌运行时上下文
This commit is contained in:
1 parent
dcb40f629b
commit
f7fe6d6b20
6 files changed
+51
-1
No files matched your search
@@ -1,9 +1,11 @@
|
||||
const DEFAULT_API_BASE_URL = "http://172.16.6.123: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: {},
|
||||
};
|
||||
},
|
||||
|
||||
Reference in new issue
Block a user