半屏小程序选择地址后(wx.getLocation),会重新加载
https://developers.weixin.qq.com/miniprogram/dev/framework/
export const toOtherMiniPrograma = (url:string,appId:string="wx7ca1d2c2fd2c0f6e",envVersion:any='develop')=>{
const halfMini = getApp().globalData.halfMini
if(halfMini){
wx.navigateToMiniProgram({
appId,
path: `/pages/loading/loading`,
envVersion,
extraData: {
token: wx.getStorageSync("token"),
url
}
})
}else{
wx.openEmbeddedMiniProgram({
appId,
path: `/pages/loading/loading`,
envVersion,
extraData: {
token: wx.getStorageSync("token"),
url
}
})
}
}
1 回复
你好,麻烦提供出现问题的具体机型、微信版本号、系统版本号,以及能复现问题的代码片段(https://developers.weixin.qq.com/miniprogram/dev/devtools/minicode.html)