Explorar o código

:bug: 目录风格没有跟随默认设置变

visuddhinanda %!s(int64=3) %!d(string=hai) anos
pai
achega
e9b8a0413b
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      dashboard/src/components/corpus/TocStyleSelect.tsx

+ 1 - 1
dashboard/src/components/corpus/TocStyleSelect.tsx

@@ -8,7 +8,7 @@ interface IWidget {
 const Widget = ({ style = "default", onChange }: IWidget) => {
 const Widget = ({ style = "default", onChange }: IWidget) => {
   return (
   return (
     <Select
     <Select
-      defaultValue={style}
+      value={style}
       style={{ width: 90 }}
       style={{ width: 90 }}
       loading={false}
       loading={false}
       onChange={(value: string) => {
       onChange={(value: string) => {