Przeglądaj źródła

论坛筛选分类

canghailong 6 miesięcy temu
rodzic
commit
45de938d85
2 zmienionych plików z 3 dodań i 3 usunięć
  1. 3 3
      src/views/forum/index.vue
  2. 0 0
      stats.html

+ 3 - 3
src/views/forum/index.vue

@@ -214,12 +214,12 @@
 		if (searchFormState.sortOrder > 1) {
 			searchFormState.sortOrder = 0
 		}
-		loadData(pagination.value)
+		resetLoad()
 	}
 	const handleChangeVal = (value) => {
 		exType.value = false
 		searchFormState.postType = value
-		loadData(pagination.value)
+		resetLoad()
 	}
 	const filterOption = (input, option) => {
 		return option.value.toLowerCase().indexOf(input.toLowerCase()) >= 0
@@ -264,6 +264,7 @@
 	const tableTotal = ref(0)
 	const resetLoad = () => {
 		pagination.value.current = 1
+		moreText.value = '加载更多'
 		loadData(pagination.value)
 	}
 	const loadData = (parameter, a) => {
@@ -333,7 +334,6 @@
 			} else {
 				moreText.value = '全部加载完成'
 			}
-			console.log('加载更多')
 		}
 	}
 

Plik diff jest za duży
+ 0 - 0
stats.html


Niektóre pliki nie zostały wyświetlone z powodu dużej ilości zmienionych plików