嵌入模式识别

This commit is contained in:
iqudoo
2026-05-02 13:40:28 +08:00
parent 1966dbbd51
commit ede67b61b4
8 changed files with 279 additions and 34 deletions

View File

@@ -3,6 +3,13 @@ let _defineConfig = {
}
let _defConfig = {
/**
* iframe / 嵌入场景下是否把调用转发到父页面的同名 SDKpostMessage
* - 'auto'(默认):只要处于子 frameparent !== window即转发含 startScan 等均走父页逻辑
* - true | 'on' | 'parent':在存在父 window 时强制转发
* - false | 'off' | 'local':始终在本页执行(子页自己要跑扫码时用)
*/
embedProxyMode: 'auto',
}
let _customConfig = {