Skip to content

Commit

Permalink
del:删除TODO;fix:修改转换ReverseTable>YakitEditor
Browse files Browse the repository at this point in the history
  • Loading branch information
luoluoTH committed Jul 15, 2024
1 parent 8527b78 commit b8bda0b
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -266,11 +266,7 @@ export const ReverseTable: React.FC<ReverseTableProps> = (props) => {
secondNode={
<YakitEditor
readOnly={true}
value={
selectRow?.raw && isEmptyObject(selectRow?.raw)
? ""
: Uint8ArrayToString(selectRow?.raw || new Uint8Array())
}
value={Uint8ArrayToString(selectRow?.raw || new Uint8Array())}
/>
}
></YakitResizeBox>
Expand Down
2 changes: 0 additions & 2 deletions app/renderer/src/main/src/utils/editors.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -816,7 +816,6 @@ export const NewHTTPPacketEditor: React.FC<NewHTTPPacketEditorProp> = React.memo
const mb = bytes.length / 1024 / 1024
// 0.5mb 及以下内容才可美化
if (isResponse) {
/*TODO - 注意*/
formatPacketRender(StringToUint8Array(originValue), (packet) => {
if (packet) {
if (mb > 0.5) {
Expand Down Expand Up @@ -898,7 +897,6 @@ export const NewHTTPPacketEditor: React.FC<NewHTTPPacketEditorProp> = React.memo
wait: 300
}
).run
/*TODO - */
const renderCode = useDebounceFn(
useMemoizedFn(async () => {
if (!isShowBeautifyRenderRef.current || typeOptions.findIndex((i) => i.value === "render") === -1) return
Expand Down

0 comments on commit b8bda0b

Please sign in to comment.