Explorar o código

修复 分页重置数据

wangzhihui %!s(int64=4) %!d(string=hai) anos
pai
achega
de49ccf420
Modificáronse 1 ficheiros con 2 adicións e 1 borrados
  1. 2 1
      src/views/voyage/voyageList.vue

+ 2 - 1
src/views/voyage/voyageList.vue

@@ -206,7 +206,6 @@ export default {
       if (res.data.status == 0) {
         tableData.value = res.data.result;
       } else {
-        tableData.value = [];
         ElNotification({
           type: "error",
           title: res.data.msg,
@@ -214,7 +213,9 @@ export default {
       }
     }
     function changeVoyageType(s) {
+      tableData.value = [];
       term.value = "";
+      currentPage.value = 1;
       currentbtn.value = s == 1;
       status.value = s;
       getVoyageList();