fix: break-normal更改位置
This commit is contained in:
parent
48ca7aca8c
commit
1d842b1b87
@ -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>;
|
||||
}
|
||||
|
@ -165,7 +165,7 @@ export const descSchema: DescItem[] = [
|
||||
label: '请求参数',
|
||||
render(value) {
|
||||
return (
|
||||
<div class="max-h-[300px] overflow-y-auto break-normal">
|
||||
<div class="max-h-[300px] w-full overflow-y-auto">
|
||||
{renderJsonPreview(value)}
|
||||
</div>
|
||||
);
|
||||
@ -176,7 +176,7 @@ export const descSchema: DescItem[] = [
|
||||
label: '响应参数',
|
||||
render(value) {
|
||||
return (
|
||||
<div class="max-h-[300px] overflow-y-auto break-normal">
|
||||
<div class="max-h-[300px] w-full overflow-y-auto">
|
||||
{renderJsonPreview(value)}
|
||||
</div>
|
||||
);
|
||||
|
Loading…
Reference in New Issue
Block a user