ZaiZai 1 year ago
parent
commit
dba6fe9c5b
1 changed files with 3 additions and 0 deletions
  1. 3 0
      pages/image/view.vue

+ 3 - 0
pages/image/view.vue

@@ -140,6 +140,9 @@ const searchClick = () => {
 //获取数据
 const searchForm = ref({queryStr: ''})
 const getDataList = async (pageNo, pageSize) => {
+    if (pageNo === 1) {
+        imageList.value = []
+    }
     const {id, fileType, type, treeId} = pageNode.value
     if (!type || !id || !type || !fileType) {
         errorToast('参数异常,请退出重试')