resetMatch 相关疑问
#1110
Replies: 1 comment 1 reply
-
|
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
yanmuq
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
日志文件
logs_43624281950.zip
BUG描述(文字/截图/视频)
错误:src/apps/com.sankuai.meituan.ts(36,11):错误 TS2322:类型“match”'无法分配给类型“activity” |“应用程序” |undefined“。
ELIFECYCLE 命令失败,退出代码为 2。
错误:过程完成,退出代码 2。
为什么会出现这个报错
期望行为(文字/截图/视频)
resetMatch?
optional resetMatch: "activity" | "match" | "app"
决定如何重置 matchTime/actionMaximum,如果规则因 matchTime/actionMaximum 而休眠, 重置可以唤醒规则
Default
'activity'
Examples
'activity'
// 当 activity 刷新时, 重置规则
// 刷新 activity 并不代表 activityId 变化
// 如 哔哩哔哩视频播放页 底部点击推荐视频 进入另一个 视频播放页, 进入了新 activity 但是 activityId 并没有变化
'match'
// 在应用内由不匹配界面切换为匹配界面时, 重置规则
'app'
// 重新进入 app 时, 重置规则
与文档不符
实际行为(文字/截图/视频)
与文档相符
Beta Was this translation helpful? Give feedback.
All reactions