ZaiZai 1 年之前
父节点
当前提交
dba6fe9c5b
共有 1 个文件被更改,包括 3 次插入0 次删除
  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('参数异常,请退出重试')