fix: break-normal更改位置

This commit is contained in:
dap
2024-12-06 09:32:27 +08:00
parent 48ca7aca8c
commit 1d842b1b87
2 changed files with 4 additions and 4 deletions

View File

@@ -68,7 +68,7 @@ export function renderJsonPreview(json: any) {
return <span>{json}</span>;
}
if (typeof json === 'object') {
return <JsonPreview data={json} />;
return <JsonPreview class="break-normal" data={json} />;
}
try {
const obj = JSON.parse(json);
@@ -76,7 +76,7 @@ export function renderJsonPreview(json: any) {
if (typeof obj !== 'object') {
return <span>{obj}</span>;
}
return <JsonPreview data={obj} />;
return <JsonPreview class="break-normal" data={obj} />;
} catch {
return <span>{json}</span>;
}