Skip to content

Commit

Permalink
fix: 客户端和无界显隐
Browse files Browse the repository at this point in the history
  • Loading branch information
Kaviilee committed Nov 15, 2024
1 parent fcc5900 commit aa5936a
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/components/common-header.vue
Original file line number Diff line number Diff line change
Expand Up @@ -43,12 +43,15 @@ export default {
canFilter: {
type: Boolean,
default: true
},
client: {
type: String,
default: "std"
}
},
data() {
return {
search: "",
client: this.$store.state.client, //版本选择
langs: {
cn: "简体中文",
Expand Down
4 changes: 4 additions & 0 deletions src/views/Index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
@filterMeta="filterMeta"
@search="onSearch"
@wujie="onWujieChange"
:client="client"
></common-header>

<!-- 推荐 -->
Expand Down Expand Up @@ -298,6 +299,9 @@ export default {
is_wujie() {
this.page = 1;
this.replaceRoute({ page: 1 })
},
client(val) {
this.is_wujie = "";
}
},
Expand Down

0 comments on commit aa5936a

Please sign in to comment.