Skip to content

Commit

Permalink
fix:face router
Browse files Browse the repository at this point in the history
  • Loading branch information
TiAmo-code committed Jul 4, 2024
1 parent 1bd9ef3 commit 8d8e59b
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion src/components/face/tabs.vue
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
<el-checkbox-button v-model="price_type" class="u-filter">免费</el-checkbox-button>
<el-checkbox-button v-model="is_unlimited" class="u-filter">可新建</el-checkbox-button>
</p>
<p style="margin-top: 0;">
<p style="margin-top: 0">
<el-radio-group v-model="filter_empty_images">
<el-radio-button class="u-filter" :label="0">全部</el-radio-button>
<el-radio-button class="u-filter" :label="1">有图</el-radio-button>
Expand Down Expand Up @@ -138,6 +138,13 @@ export default {
},
},
mounted() {
if (this.$route.query) {
Object.keys(this.$route.query).forEach((key) => {
if (!this.hasOwnProperty(key)) {
this[key] = this.$route.query[key];
}
});
}
window.addEventListener("resize", this.handleResize);
},
destroyed() {
Expand Down

0 comments on commit 8d8e59b

Please sign in to comment.