fix(web_view): 改用 wxscene 避免 scene 被微信拦截
微信小程序的 navigateTo 会把 `scene` 参数名当作保留字段 (只由扫码填充),导致 `option.scene` 为空。 改用 wxscene,同时在 web_view onLoad 中兼容检查两者。
This commit is contained in:
@@ -638,7 +638,7 @@ export default {
|
||||
,goWxacodeTest() {
|
||||
console.log("[user] 太阳码扫码测试");
|
||||
uni.navigateTo({
|
||||
url: "/pages/annex/web_view/index?scene=app=pregnancy"
|
||||
url: "/pages/annex/web_view/index?wxscene=app=pregnancy"
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user