提交 17e9d83d 编写于 作者: W wangjinxin613

chore(automator): 修复 ios 自动化测试 app-webview 模式卡住的bug

上级 b9e4506e
......@@ -29,12 +29,22 @@ export default {
console.log('initRuntimeAutomator...')
},
message(msg: UniWebViewMessageEvent) {
const data = msg.detail.data!
// #ifdef APP-ANDROID
const data = msg.detail.data!
const id = data.get("id") as number
const type = data.get("type") as string
const dataObj = data.get("data") as UTSJSONObject
const action = dataObj.getString("action")!
const args = dataObj.get("args")
// #endif
// #ifndef APP-ANDROID
const data = msg.detail.data!
const id = data["id"] as number
const type = data["type"] as string
const dataObj = data["data"]
const action = dataObj["action"]!
const args = dataObj["args"]
// #endif
if (type != 'automator') {
return;
}
......
此差异已折叠。
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册