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>;
|
return <span>{json}</span>;
|
||||||
}
|
}
|
||||||
if (typeof json === 'object') {
|
if (typeof json === 'object') {
|
||||||
return <JsonPreview data={json} />;
|
return <JsonPreview class="break-normal" data={json} />;
|
||||||
}
|
}
|
||||||
try {
|
try {
|
||||||
const obj = JSON.parse(json);
|
const obj = JSON.parse(json);
|
||||||
@ -76,7 +76,7 @@ export function renderJsonPreview(json: any) {
|
|||||||
if (typeof obj !== 'object') {
|
if (typeof obj !== 'object') {
|
||||||
return <span>{obj}</span>;
|
return <span>{obj}</span>;
|
||||||
}
|
}
|
||||||
return <JsonPreview data={obj} />;
|
return <JsonPreview class="break-normal" data={obj} />;
|
||||||
} catch {
|
} catch {
|
||||||
return <span>{json}</span>;
|
return <span>{json}</span>;
|
||||||
}
|
}
|
||||||
|
@ -165,7 +165,7 @@ export const descSchema: DescItem[] = [
|
|||||||
label: '请求参数',
|
label: '请求参数',
|
||||||
render(value) {
|
render(value) {
|
||||||
return (
|
return (
|
||||||
<div class="max-h-[300px] overflow-y-auto break-normal">
|
<div class="max-h-[300px] w-full overflow-y-auto">
|
||||||
{renderJsonPreview(value)}
|
{renderJsonPreview(value)}
|
||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
@ -176,7 +176,7 @@ export const descSchema: DescItem[] = [
|
|||||||
label: '响应参数',
|
label: '响应参数',
|
||||||
render(value) {
|
render(value) {
|
||||||
return (
|
return (
|
||||||
<div class="max-h-[300px] overflow-y-auto break-normal">
|
<div class="max-h-[300px] w-full overflow-y-auto">
|
||||||
{renderJsonPreview(value)}
|
{renderJsonPreview(value)}
|
||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
|
Loading…
Reference in New Issue
Block a user