Ver Fonte

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

visuddhinanda há 3 anos atrás
pai
commit
e9b8a0413b
1 ficheiros alterados com 1 adições e 1 exclusões
  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) => {