fix: add worker token do not update

This commit is contained in:
jialin
2025-11-20 10:31:27 +08:00
parent 2687fb187d
commit 5d383ec39b
11 changed files with 197 additions and 19 deletions
@@ -11,6 +11,7 @@ interface ViewerProps {
options?: Global.BaseOption<string>[];
defaultValue?: string;
headerHeight?: number;
height?: number;
lang?: string;
onChange?: (value: string | number) => void;
}
@@ -31,6 +32,7 @@ const CommandViewer: React.FC<ViewerProps> = (props) => {
defaultValue,
options = [],
headerHeight = 40,
height = 380,
lang,
onChange
} = props || {};
@@ -66,7 +68,7 @@ const CommandViewer: React.FC<ViewerProps> = (props) => {
}
>
<HighlightCode
height={380}
height={height}
theme="dark"
code={code}
lang={lang || value}