瀏覽代碼

试验收藏去除空格

duy 3 周之前
父節點
當前提交
9b3f878592
共有 1 個文件被更改,包括 4 次插入0 次删除
  1. 4 0
      src/views/tentative/material/approach.vue

+ 4 - 0
src/views/tentative/material/approach.vue

@@ -394,6 +394,10 @@ const tableItemClick = (row) => {
 const tableLoad = ref(true)
 const tableData = ref([])
 const getTableData = async () => {
+        if (searchForm.value?.queryValue) {
+            searchForm.value.queryValue = searchForm.value.queryValue.trim()
+        }
+
     tableLoad.value = true
     const { error, code, data } = await approachApi.queryPage({
         projectId: projectId.value,