mirror of
https://github.com/Yidadaa/ChatGPT-Next-Web.git
synced 2025-08-08 19:52:27 +08:00
代码安全优化
This commit is contained in:
@@ -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);
|
||||
@@ -212,7 +212,7 @@ function CustomCode(props: { children: any; className?: string }) {
|
||||
>
|
||||
{props.children}
|
||||
</code>
|
||||
|
||||
|
||||
{renderShowMoreButton()}
|
||||
</>
|
||||
);
|
||||
|
Reference in New Issue
Block a user