Browse Source

repos square

repo-square
chenshihai 2 years ago
parent
commit
468b48b052
1 changed files with 7 additions and 0 deletions
  1. +7
    -0
      web_src/vuepages/pages/repos/square/index.vue

+ 7
- 0
web_src/vuepages/pages/repos/square/index.vue View File

@@ -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) {


Loading…
Cancel
Save