@@ -163,7 +163,8 @@ const initMap = async () => {
input: 'searchInput',
placeSearchOptions: {
map: map,
- pageSize: 7
+ pageSize: 7,
+ pageIndex: 1,
},
searchResultsContainer: 'searchResults'
});
@@ -333,6 +334,7 @@ const debouncedSearch = (inputValue: string, searchType: string) => {
console.log(22222)
// 地址搜索,保持原有逻辑
if (poiPicker) {
+ poiPicker.placeSearch.opt.pageIndex = 1;
poiPicker.searchByKeyword(inputValue)
}