|
|
@@ -10,6 +10,7 @@ |
|
|
|
</div> |
|
|
|
<div class="recommend-repos-c"> |
|
|
|
<RecommendRepos :static="true" :staticSwiperData="staticSquareRecommendRepos"></RecommendRepos> |
|
|
|
<a name="search"></a> |
|
|
|
</div> |
|
|
|
<div class="ui container"> |
|
|
|
<div class="ui grid"> |
|
|
@@ -116,6 +117,12 @@ export default { |
|
|
|
q: this.reposListQurey, |
|
|
|
topic: this.reposListTopic, |
|
|
|
}); |
|
|
|
const urlParams = getUrlSearchParams(); |
|
|
|
const page = Number(urlParams.page) || 1; |
|
|
|
const reposListSortType = urlParams.sort; |
|
|
|
if (page != 1 || reposListSortType) { |
|
|
|
window.location.href = '#search'; |
|
|
|
} |
|
|
|
this.$refs.reposListRef.search(); |
|
|
|
}); |
|
|
|
window.addEventListener('pageshow', function (e) { |
|
|
|