SyuanYu 7 mesiacov pred
rodič
commit
99ef6c32fd
1 zmenil súbory, kde vykonal 6 pridanie a 4 odobranie
  1. 6 4
      columns/lists/js/main.js

+ 6 - 4
columns/lists/js/main.js

@@ -110,6 +110,8 @@ let noData = false; // 無資料
 
 
 // 列表篩選
 // 列表篩選
 async function dataSearch(type = "") {
 async function dataSearch(type = "") {
+  console.log('type', type);
+
   let url;
   let url;
 
 
   if (isFirstLoad) {
   if (isFirstLoad) {
@@ -131,10 +133,10 @@ async function dataSearch(type = "") {
 
 
     if (input !== "") {
     if (input !== "") {
       url += `&keyword=${input}`;
       url += `&keyword=${input}`;
-      // $('#dataList').html("");
-      if (type === "keyword") {
-        $('#dataList').html("");
-      }
+    }
+
+    if (type === "keyword") {
+      $('#dataList').html("");
     }
     }
 
 
     // 篩選按鈕
     // 篩選按鈕