Przeglądaj źródła

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

visuddhinanda 3 lat temu
rodzic
commit
e9b8a0413b

+ 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) => {