From 4b3bceb065b3588dd5da2e74b5d410302aa8e6e5 Mon Sep 17 00:00:00 2001 From: haha Date: Mon, 9 Jun 2025 00:14:26 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E5=A4=A7=E5=B1=8F=E5=A4=A9?= =?UTF-8?q?=E6=B0=94=E9=A2=84=E6=8A=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- yanzhu-bigscreen/src/components/header.vue | 15 +++++++++------ yanzhu-bigscreen/src/views/projectDetail.vue | 4 ++-- 2 files changed, 11 insertions(+), 8 deletions(-) diff --git a/yanzhu-bigscreen/src/components/header.vue b/yanzhu-bigscreen/src/components/header.vue index 905d1fba..37affc63 100644 --- a/yanzhu-bigscreen/src/components/header.vue +++ b/yanzhu-bigscreen/src/components/header.vue @@ -27,20 +27,20 @@
@@ -52,14 +52,17 @@
+
diff --git a/yanzhu-bigscreen/src/views/projectDetail.vue b/yanzhu-bigscreen/src/views/projectDetail.vue index 92161cb2..7260dfb0 100644 --- a/yanzhu-bigscreen/src/views/projectDetail.vue +++ b/yanzhu-bigscreen/src/views/projectDetail.vue @@ -552,8 +552,7 @@ export default { this.init() }) ) - this.selProject = this.$store.getters.selProject - this.init() + this.selProject = this.$store.getters.selProject this.dpi = this.$dpi() window.addEventListener('resize', () => { if (this.dpi != this.$dpi()) { @@ -564,6 +563,7 @@ export default { this.costInterval = setInterval(this.manufacturingCostRoll, 5000) this.$api.weather.getCityInfo().then((d) => { this.cityInfo = d.data?.city || [] + this.init() }) }, methods: {