File tree Expand file tree Collapse file tree 1 file changed +8
-10
lines changed
app/renderer/src/main/src/utils Expand file tree Collapse file tree 1 file changed +8
-10
lines changed Original file line number Diff line number Diff line change @@ -53,6 +53,7 @@ import {applyYakitMonacoTheme} from "./monacoSpec/theme"
5353import { useI18nNamespaces } from "@/i18n/useI18nNamespaces"
5454import { fontSizeOptions , useEditorFontSize } from "@/store/editorFontSize"
5555import { YakitSelect } from "@/components/yakitUI/YakitSelect/YakitSelect"
56+ import { newWebFuzzerTab } from "@/pages/fuzzer/HTTPFuzzerPage"
5657
5758const { ipcRenderer} = window . require ( "electron" )
5859
@@ -1034,17 +1035,14 @@ export const NewHTTPPacketEditor: React.FC<NewHTTPPacketEditorProp> = React.memo
10341035 size = { "small" }
10351036 type = { "primary" }
10361037 icon = { < ThunderboltFilled /> }
1037- onClick = { ( ) => {
1038- ipcRenderer . invoke ( "send-to-tab" , {
1039- type : "fuzzer" ,
1040- // 这儿的编码为了保证不要乱动
1041- data : {
1042- isHttps : props . defaultHttps || false ,
1043- request : props . defaultPacket ? props . defaultPacket : originValue ,
1044- downstreamProxyStr : downstreamProxyStr
1045- }
1038+ onClick = { ( ) =>
1039+ newWebFuzzerTab ( {
1040+ isHttps : props . defaultHttps || false ,
1041+ request : props . defaultPacket ? props . defaultPacket : originValue ,
1042+ downstreamProxyStr,
1043+ openFlag : true
10461044 } )
1047- } }
1045+ }
10481046 >
10491047 FUZZ
10501048 </ YakitButton >
You can’t perform that action at this time.
0 commit comments