Sfoglia il codice sorgente

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

visuddhinanda 3 anni fa
parent
commit
e9b8a0413b
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  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) => {
   return (
     <Select
-      defaultValue={style}
+      value={style}
       style={{ width: 90 }}
       loading={false}
       onChange={(value: string) => {