Skip to content

Commit

Permalink
del:删除废弃字段triggerRefresh
Browse files Browse the repository at this point in the history
  • Loading branch information
luoluoTH committed Apr 18, 2024
1 parent 6d1661d commit 7aedbf7
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions app/renderer/src/main/src/pages/fuzzer/HTTPFuzzerPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -649,11 +649,11 @@ const HTTPFuzzerPage: React.FC<HTTPFuzzerPageProp> = (props) => {
const [advancedConfigValue, setAdvancedConfigValue] = useState<AdvancedConfigValueProps>(
initWebFuzzerPageInfo().advancedConfigValue
) // 在新建页面的时候,就将高级配置的初始值存放在数据中心中,所以页面得高级配置得值可以直接通过页面得id在数据中心中获取
// 切换【规则】/【配置】刷新高级配置中的表单
const [triggerRefresh, setTriggerRefresh] = useState<boolean>(false)

const [advancedConfig, setAdvancedConfig] = useState<boolean>(false)
// 【规则】高级配置的隐藏/显示
const [advancedConfigRuleShow, setAdvancedConfigRuleShow] = useState<boolean>(false)

// 【配置】/【规则】高级内容显示
const [advancedConfigShowType, setAdvancedConfigShowType] = useState<WebFuzzerType>("config")
const [redirectedResponse, setRedirectedResponse] = useState<FuzzerResponse>()
Expand Down Expand Up @@ -803,7 +803,6 @@ const HTTPFuzzerPage: React.FC<HTTPFuzzerPageProp> = (props) => {
try {
const value = JSON.parse(data)
setAdvancedConfigShowType(value.type)
setTriggerRefresh(!triggerRefresh)
} catch (error) {}
})
/**更新请求包 */
Expand Down Expand Up @@ -1881,7 +1880,6 @@ const HTTPFuzzerPage: React.FC<HTTPFuzzerPageProp> = (props) => {
id={props.id}
matchSubmitFun={matchSubmitFun}
showFormContentType={advancedConfigShowType}
triggerRefresh={triggerRefresh}
/>
</React.Suspense>
<div className={styles["http-fuzzer-page"]}>
Expand Down

0 comments on commit 7aedbf7

Please sign in to comment.