소스 검색

feat: 修改默认滚动加载页数

jack 5 달 전
부모
커밋
227dfb46d9

+ 4 - 1
src/views/Layout/src/components/Header/components/NotificationDrawer.vue

@@ -22,7 +22,7 @@ const notificationList = ref<any[]>([])
 const notificationMessageCardRef = ref()
 const pageInfo = ref({
   cp: 1,
-  ps: 5
+  ps: 30
 })
 const getNotificationList = () => {
   loading.value = true
@@ -236,6 +236,9 @@ div.layout-toolbar {
     }
   }
 }
+:deep(.footer) {
+  margin-top: 40px;
+}
 </style>
 <style lang="scss">
 div.layout-toolbar {

+ 2 - 2
src/views/SystemMessage/src/SystemMessage.vue

@@ -76,7 +76,7 @@ const unreadNotificationList = ref<any[]>([])
 const readNotificationList = ref<any[]>([])
 const pageInfo = ref({
   cp: 0,
-  ps: 7
+  ps: 30
 })
 const getNotificationList = async (
   tabType: string = 'All Notifications',
@@ -92,7 +92,7 @@ const getNotificationList = async (
     if (activeCardTypeName.value === 'Feature Update') {
       pageInfo.value.ps = 100
     } else {
-      pageInfo.value.ps = 7
+      pageInfo.value.ps = 30
     }
   } else {
     pageInfo.value.cp += 1

+ 1 - 1
src/views/SystemMessage/src/components/SystemMessageDetail.vue

@@ -21,7 +21,7 @@ if (route.query.type === 'feature') {
 }
 const pageInfo = ref({
   cp: 0,
-  ps: 6
+  ps: 30
 })
 const scrollContainerRef = ref<HTMLElement | null>(null)
 const isScrollLoading = ref(false)