代码安全优化
This commit is contained in:
parent
8fd843d228
commit
4a1319f2c0
|
@ -173,7 +173,7 @@ function CustomCode(props: { children: any; className?: string }) {
|
|||
const session = chatStore.currentSession();
|
||||
const config = useAppConfig();
|
||||
const enableCodeFold =
|
||||
session.mask?.enableCodeFold != false && config.enableCodeFold;
|
||||
session.mask?.enableCodeFold !== false && config.enableCodeFold;
|
||||
|
||||
const ref = useRef<HTMLPreElement>(null);
|
||||
const [collapsed, setCollapsed] = useState(true);
|
||||
|
|
Loading…
Reference in New Issue