From c8307d580a62cc14dcdad2590de00fdc93bfe5a6 Mon Sep 17 00:00:00 2001
From: zhanghua <314079846@qq.com>
Date: 星期四, 13 三月 2025 22:24:03 +0800
Subject: [PATCH] 页面优化
---
src/api/student.js | 69 +++++++++++++++++++---------------
1 files changed, 38 insertions(+), 31 deletions(-)
diff --git a/src/api/student.js b/src/api/student.js
index 739105b..93733af 100644
--- a/src/api/student.js
+++ b/src/api/student.js
@@ -43,6 +43,7 @@
}
}
`,
+ fetchPolicy:'no-cache',
variables: params,
});
}
@@ -89,6 +90,7 @@
}
}
`,
+ fetchPolicy:'no-cache',
variables: params,
});
}
@@ -131,6 +133,7 @@
}
}
`,
+ fetchPolicy:'no-cache',
variables: params,
});
}
@@ -177,41 +180,11 @@
}
}
`,
+ fetchPolicy:'no-cache',
variables: params,
});
}
-export function getDeleted(params) {
- return apolloClient.query({
- query: gql`
- query vars(
- $staffId: Int!
- $itemType: ItemType!
- $keyword: String
- $pageIn: PageIn!
- ) {
- findDeletedItem(
- staffId: $staffId
- itemType: $itemType
- keyword: $keyword
- pageIn: $pageIn
- ) {
- ls {
- id
- name
- modifyTime
- }
- pageOut {
- total
- index
- size
- }
- }
- }
- `,
- variables: params,
- });
-}
export function getDetails(params) {
return apolloClient.query({
@@ -332,6 +305,40 @@
}
}
`,
+ fetchPolicy:'no-cache',
+ variables: params,
+ });
+}
+//宸插仠鐢�
+export function getDeleted(params) {
+ return apolloClient.query({
+ query: gql`
+ query vars(
+ $staffId: Int!
+ $itemType: ItemType!
+ $keyword: String
+ $pageIn: PageIn!
+ ) {
+ findDeletedItem(
+ staffId: $staffId
+ itemType: $itemType
+ keyword: $keyword
+ pageIn: $pageIn
+ ) {
+ ls {
+ id
+ name
+ modifyTime
+ }
+ pageOut {
+ total
+ index
+ size
+ }
+ }
+ }
+ `,
+ fetchPolicy:'no-cache',
variables: params,
});
}
--
Gitblit v1.8.0