Update WeChat MiniProgram share config and improve Download Web page logic for HarmonyOS detection
This commit is contained in:
@@ -66,6 +66,21 @@ Component({
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
onLoad() {
|
||||
wx.showShareMenu({
|
||||
withShareTicket: true,
|
||||
menus: ['shareAppMessage', 'shareTimeline']
|
||||
});
|
||||
},
|
||||
|
||||
onShareAppMessage() {
|
||||
return config.share;
|
||||
},
|
||||
|
||||
onShareTimeline() {
|
||||
return config.share;
|
||||
},
|
||||
|
||||
// 检查本地 Session
|
||||
checkLocalSession() {
|
||||
const session = wx.getStorageSync('USER_SESSION');
|
||||
|
||||
Reference in New Issue
Block a user