Skip to content

Commit

Permalink
feat: mitm带参
Browse files Browse the repository at this point in the history
  • Loading branch information
song-xiao-lin committed Jul 29, 2024
1 parent 6f44445 commit d9a4481
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,6 @@ export const MITMPluginHijackContent: React.FC<MITMPluginHijackContentProps> = (
handlersID.setAll(tmpID)

const allCheckList = [...new Set(cacheTmp)]
setRemoteValue(CONST_DEFAULT_ENABLE_INITIAL_PLUGIN, allCheckList.length ? "true" : "")
noParamsCheckArr = []
hasParamsCheckArr = []
// 返回的hooks里面是真正加载成功的插件,既有带参插件又有不带参插件,通过本地缓存中带参数的插件参数值是否存在,存在则表示有参数的勾选插件,否则表示无参数的勾选插件
Expand All @@ -218,6 +217,7 @@ export const MITMPluginHijackContent: React.FC<MITMPluginHijackContentProps> = (
setHasParamsCheckList([...hasParamsCheckArr])
setNoParamsCheckList([...noParamsCheckArr])
})
setRemoteValue(CONST_DEFAULT_ENABLE_INITIAL_PLUGIN, noParamsCheckArr.length ? "true" : "")
}
})
updateHooks()
Expand Down

0 comments on commit d9a4481

Please sign in to comment.