mirror of
https://github.com/PlayEdu/backend
synced 2025-06-15 04:57:00 +08:00
部门、分类切换时页码重置为1
This commit is contained in:
parent
b2d1781113
commit
69b87930da
@ -100,6 +100,7 @@ const CoursePage = () => {
|
|||||||
type=""
|
type=""
|
||||||
text={"分类"}
|
text={"分类"}
|
||||||
onUpdate={(keys: any, title: any) => {
|
onUpdate={(keys: any, title: any) => {
|
||||||
|
setPage(1);
|
||||||
setCategoryIds(keys);
|
setCategoryIds(keys);
|
||||||
if (typeof title === "string") {
|
if (typeof title === "string") {
|
||||||
setLabel(title);
|
setLabel(title);
|
||||||
@ -123,6 +124,7 @@ const CoursePage = () => {
|
|||||||
type="no-course"
|
type="no-course"
|
||||||
text={"部门"}
|
text={"部门"}
|
||||||
onUpdate={(keys: any, title: any) => {
|
onUpdate={(keys: any, title: any) => {
|
||||||
|
setPage(1);
|
||||||
setDepIds(keys);
|
setDepIds(keys);
|
||||||
setDepLabel(title);
|
setDepLabel(title);
|
||||||
}}
|
}}
|
||||||
|
@ -266,6 +266,7 @@ const MemberPage = () => {
|
|||||||
type=""
|
type=""
|
||||||
text={"部门"}
|
text={"部门"}
|
||||||
onUpdate={(keys: any, title: any) => {
|
onUpdate={(keys: any, title: any) => {
|
||||||
|
setPage(1);
|
||||||
setDepIds(keys);
|
setDepIds(keys);
|
||||||
var index = title.indexOf("(");
|
var index = title.indexOf("(");
|
||||||
if (index !== -1) {
|
if (index !== -1) {
|
||||||
|
@ -166,6 +166,7 @@ const ResourceImagesPage = () => {
|
|||||||
type="no-cate"
|
type="no-cate"
|
||||||
text={"图片"}
|
text={"图片"}
|
||||||
onUpdate={(keys: any, title: any) => {
|
onUpdate={(keys: any, title: any) => {
|
||||||
|
setPage(1);
|
||||||
setCategoryIds(keys);
|
setCategoryIds(keys);
|
||||||
if (typeof title === "string") {
|
if (typeof title === "string") {
|
||||||
setLabel(title);
|
setLabel(title);
|
||||||
|
@ -188,6 +188,7 @@ const ResourceVideosPage = () => {
|
|||||||
type="no-cate"
|
type="no-cate"
|
||||||
text={"视频"}
|
text={"视频"}
|
||||||
onUpdate={(keys: any, title: any) => {
|
onUpdate={(keys: any, title: any) => {
|
||||||
|
setPage(1);
|
||||||
setCategoryIds(keys);
|
setCategoryIds(keys);
|
||||||
if (typeof title === "string") {
|
if (typeof title === "string") {
|
||||||
setLabel(title);
|
setLabel(title);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user