소스 검색

试验收藏去除空格

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,