mirror of
https://github.com/PlayEdu/backend
synced 2025-12-30 01:49:34 +08:00
部门、分类切换时页码重置为1
This commit is contained in:
@@ -100,6 +100,7 @@ const CoursePage = () => {
|
||||
type=""
|
||||
text={"分类"}
|
||||
onUpdate={(keys: any, title: any) => {
|
||||
setPage(1);
|
||||
setCategoryIds(keys);
|
||||
if (typeof title === "string") {
|
||||
setLabel(title);
|
||||
@@ -123,6 +124,7 @@ const CoursePage = () => {
|
||||
type="no-course"
|
||||
text={"部门"}
|
||||
onUpdate={(keys: any, title: any) => {
|
||||
setPage(1);
|
||||
setDepIds(keys);
|
||||
setDepLabel(title);
|
||||
}}
|
||||
|
||||
Reference in New Issue
Block a user