部门、分类切换时页码重置为1

This commit is contained in:
禺狨 2023-06-12 14:20:37 +08:00
parent b2d1781113
commit 69b87930da
4 changed files with 5 additions and 0 deletions

View File

@ -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);
}}

View File

@ -266,6 +266,7 @@ const MemberPage = () => {
type=""
text={"部门"}
onUpdate={(keys: any, title: any) => {
setPage(1);
setDepIds(keys);
var index = title.indexOf("(");
if (index !== -1) {

View File

@ -166,6 +166,7 @@ const ResourceImagesPage = () => {
type="no-cate"
text={"图片"}
onUpdate={(keys: any, title: any) => {
setPage(1);
setCategoryIds(keys);
if (typeof title === "string") {
setLabel(title);

View File

@ -188,6 +188,7 @@ const ResourceVideosPage = () => {
type="no-cate"
text={"视频"}
onUpdate={(keys: any, title: any) => {
setPage(1);
setCategoryIds(keys);
if (typeof title === "string") {
setLabel(title);