Skip to content

Commit

Permalink
/groups PushQueryの調整
Browse files Browse the repository at this point in the history
  • Loading branch information
hibiyahibiyahibiya committed Sep 5, 2023
1 parent f289bd2 commit c4c12eb
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion pages/groups/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -281,7 +281,10 @@ export default Vue.extend({
// クエリパラメータを見て検索バー内の文字列を再現など
if (typeof this.$route.query.q === 'string') {
this.search_query = this.$route.query.q
this.PushQuery(null, undefined, null, null, null)
// 検索中はタグ選択ができないため、created時もtを削除
if (this.$route.query.t !== undefined) {
this.PushQuery(null, undefined, null, null, null)
}
this.SearchGroups()
}
if (
Expand Down Expand Up @@ -322,6 +325,7 @@ export default Vue.extend({
},
methods: {
// それぞれ、Qは検索バーの内容、Tはタグ、Bはブックマーク、Sはソート(並び替え)、Rは昇順/降順の切り替え(ReverseのR)
PushQuery(Q: any, T: any, B: any, S: any, R: any) {
Q = Q === null ? this.$route.query.q : Q
T = T === null ? this.$route.query.t : T
Expand Down

0 comments on commit c4c12eb

Please sign in to comment.