Add WeChat miniprogram web-view shell
This commit is contained in:
10
miniprogram/app.js
Normal file
10
miniprogram/app.js
Normal file
@@ -0,0 +1,10 @@
|
||||
App({
|
||||
globalData: {
|
||||
launchOptions: null,
|
||||
},
|
||||
|
||||
onLaunch(options) {
|
||||
// 中文注释:保留启动参数,后续如果要把分享路径映射到 H5 深链,可以从这里统一读取。
|
||||
this.globalData.launchOptions = options;
|
||||
},
|
||||
});
|
||||
Reference in New Issue
Block a user