From 98f494cf633e3acf5c20f3e9de0d708f2a6c2045 Mon Sep 17 00:00:00 2001
From: ZhangXianQiang <1135831638@qq.com>
Date: 星期五, 05 七月 2024 09:39:59 +0800
Subject: [PATCH] feat:视频浏览

---
 src/views/exam-list/index.vue |   10 +++++++++-
 1 files changed, 9 insertions(+), 1 deletions(-)

diff --git a/src/views/exam-list/index.vue b/src/views/exam-list/index.vue
index 1fed416..f83cbaa 100644
--- a/src/views/exam-list/index.vue
+++ b/src/views/exam-list/index.vue
@@ -32,7 +32,11 @@
               </div>
 
               <div class="card-footer flex justify-center mb-7 shrink-0">
-                <el-pagination background layout="prev, pager, next" :total="1000" />
+                <el-pagination background layout="prev, pager, next" :total="dataList.length"
+                :default-page-size="20"
+                :currentPage="currentIndex"
+                :hide-on-single-page="true"
+                @current-change="handleCurrentChange"/>
               </div>
             </div>
           </el-card>
@@ -78,6 +82,10 @@
 
 const handleClick = (tab, event) => {
 };
+
+const handleCurrentChange = (val) => {
+  getData();
+}
 </script>
 
 <style lang="scss" scoped>

--
Gitblit v1.8.0