Browse Source

fix: 查询重置

dx 5 months ago
parent
commit
be92d17b92
1 changed files with 2 additions and 1 deletions
  1. 2 1
      src/views/HomeView.vue

+ 2 - 1
src/views/HomeView.vue

@@ -178,7 +178,7 @@ const onLoad = (value) => {
   listTools({
   listTools({
       level: '3',
       level: '3',
       parentId: value,
       parentId: value,
-      materialName: searchValueRef.value,
+      toolName: searchValueRef.value,
       pageSize: totalPage.value,
       pageSize: totalPage.value,
       delFlag: 0
       delFlag: 0
     }).then((res) => {
     }).then((res) => {
@@ -255,6 +255,7 @@ const handleChangeDropdownOfType2 = (value) => {
 
 
 const handleClear = () => {
 const handleClear = () => {
   searchValueRef.value = ''
   searchValueRef.value = ''
+  onLoad()
 }
 }
 const handleDetail = (row) => {
 const handleDetail = (row) => {
   router.push({ path: '/detail', query: { id: row.id, toolName: row.toolName } })
   router.push({ path: '/detail', query: { id: row.id, toolName: row.toolName } })