Просмотр исходного кода

fix:前端项目,修复用户查看接口信息列表分页切换失效的问题

yang yi 11 месяцев назад
Родитель
Сommit
405416f0ba
1 измененных файлов с 10 добавлено и 1 удалено
  1. 10 1
      ui/yangyi-open-api-platform-ui/src/views/interfaceInfo/index.vue

+ 10 - 1
ui/yangyi-open-api-platform-ui/src/views/interfaceInfo/index.vue

@@ -77,7 +77,7 @@
 </template>
 
 <script setup>
-import { ref, reactive, computed, onMounted } from 'vue'
+import { ref, reactive, onMounted } from 'vue'
 import { useRouter } from 'vue-router'
 import {queryInterface} from "/src/commom/api/interfaceInfo.js";
 import {ElMessage} from "element-plus";
@@ -94,7 +94,16 @@ const pagination = reactive({
   size: 10,
   total: 0
 })
+const handleSizeChange = (size) => {
+  pagination.size = size
+  pagination.current = 1
+  fetchTableData()
+}
 
+const handleCurrentChange = (current) => {
+  pagination.current = current
+  fetchTableData()
+}
 // 加载状态
 const loading = ref(false)