mirror of
https://github.com/027xiguapi/code-box.git
synced 2026-05-24 19:19:01 +00:00
重置设置
This commit is contained in:
@@ -7,7 +7,9 @@ import { i18n } from "~tools"
|
||||
export default function CssCode(props) {
|
||||
let { name } = props
|
||||
|
||||
const [runCss, setRunCss] = useStorage(`${name}-runCss`, false)
|
||||
const [runCss, setRunCss] = useStorage(`${name}-runCss`, (v) =>
|
||||
v === undefined ? false : v
|
||||
)
|
||||
const [cssCode, setCssCode, { setRenderValue, setStoreValue, remove }] =
|
||||
useStorage(`${name}-cssCode`)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user