visuddhinanda 2 лет назад
Родитель
Сommit
03804c1f05
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      dashboard/src/components/channel/ChapterInChannelList.tsx

+ 1 - 1
dashboard/src/components/channel/ChapterInChannelList.tsx

@@ -169,7 +169,7 @@ const ChapterInChannelListWidget = ({ channelId, onSelect }: IWidget) => {
       request={async (params = {}, sorter, filter) => {
         // TODO 加排序
         console.log(params, sorter, filter);
-        const offset = (params.current || 1 - 1) * (params.pageSize || 20);
+        const offset = ((params.current || 1) - 1) * (params.pageSize || 20);
         const res = await get<IChapterListResponse>(
           `/v2/progress?view=chapter&channel=${channelId}&progress=0.01&offset=${offset}`
         );