File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -1027,7 +1027,7 @@ <h3 id="modalTitle">添加任务</h3>
10271027 try {
10281028 params = paramsText ? JSON . parse ( paramsText ) : { } ;
10291029 } catch ( e ) {
1030- params = paramsText
1030+ params = `" ${ paramsText } "`
10311031 }
10321032
10331033 executeBtn . disabled = true ;
@@ -1094,7 +1094,12 @@ <h3 id="modalTitle">添加任务</h3>
10941094
10951095 // 保存调试结果
10961096 const methodName = document . getElementById ( 'methodSelect' ) . value ;
1097- const params = JSON . parse ( document . getElementById ( 'paramsInput' ) . value ) ;
1097+ let params
1098+ try {
1099+ params = JSON . parse ( document . getElementById ( 'paramsInput' ) . value ) ;
1100+ } catch ( e ) {
1101+ params = `"${ document . getElementById ( 'paramsInput' ) . value } "` ;
1102+ }
10981103 debugResults . push ( {
10991104 timestamp : new Date ( ) . toISOString ( ) ,
11001105 method : methodName ,
You can’t perform that action at this time.
0 commit comments