mirror of
https://github.com/ChatGPTNextWeb/ChatGPT-Next-Web.git
synced 2025-05-19 12:10:17 +09:00
代码安全优化
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);
|
||||
@ -212,7 +212,7 @@ function CustomCode(props: { children: any; className?: string }) {
|
||||
>
|
||||
{props.children}
|
||||
</code>
|
||||
|
||||
|
||||
{renderShowMoreButton()}
|
||||
</>
|
||||
);
|
||||
|
Loading…
Reference in New Issue
Block a user