代码安全优化

This commit is contained in:
code-october 2024-10-11 11:57:23 +00:00
parent 8fd843d228
commit 4a1319f2c0
1 changed files with 2 additions and 2 deletions

View File

@ -173,7 +173,7 @@ function CustomCode(props: { children: any; className?: string }) {
const session = chatStore.currentSession(); const session = chatStore.currentSession();
const config = useAppConfig(); const config = useAppConfig();
const enableCodeFold = const enableCodeFold =
session.mask?.enableCodeFold != false && config.enableCodeFold; session.mask?.enableCodeFold !== false && config.enableCodeFold;
const ref = useRef<HTMLPreElement>(null); const ref = useRef<HTMLPreElement>(null);
const [collapsed, setCollapsed] = useState(true); const [collapsed, setCollapsed] = useState(true);