From 8d8e59b6ca53b955becbaeeff72866e0b1d1a6a7 Mon Sep 17 00:00:00 2001 From: TiAmo <361258177@qq.com> Date: Thu, 4 Jul 2024 22:38:33 +0800 Subject: [PATCH] fix:face router --- src/components/face/tabs.vue | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/components/face/tabs.vue b/src/components/face/tabs.vue index c8e0a2700..a005728b2 100644 --- a/src/components/face/tabs.vue +++ b/src/components/face/tabs.vue @@ -24,7 +24,7 @@ 免费 可新建

-

+

全部 有图 @@ -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() {