From e4d26784580737ba8a34b549752c7a1b2437ae64 Mon Sep 17 00:00:00 2001 From: air <30444667+sszdot@users.noreply.github.com> Date: Thu, 26 Jun 2025 17:34:52 +0800 Subject: [PATCH] =?UTF-8?q?=E3=80=90=E7=B1=BB=20=20=E5=9E=8B=E3=80=91?= =?UTF-8?q?=EF=BC=9Afix=20=E3=80=90=E5=8E=9F=20=20=E5=9B=A0=E3=80=91?= =?UTF-8?q?=EF=BC=9A1.=E6=9C=BA=E5=9E=8B=E6=9B=B4=E6=96=B0=E6=A8=A1?= =?UTF-8?q?=E5=9D=97=20=E5=8D=B4=E6=9C=80=E5=A4=A7=E8=BD=BD=E9=87=8D?= =?UTF-8?q?=E5=AD=97=E6=AE=B5=20=E5=AF=BC=E8=87=B4=E4=B8=8A=E4=BC=A0?= =?UTF-8?q?=E9=94=99=E8=AF=AF=20=202.=E5=AF=BC=E8=88=AA=E6=A0=8F=20?= =?UTF-8?q?=E7=94=B1=E4=BA=8E=E9=A3=9E=E6=9C=BA=E6=9B=B4=E6=96=B0=E4=B8=8D?= =?UTF-8?q?=E5=8F=8A=E6=97=B6=20=E6=98=BE=E7=A4=BA=E5=AE=8C=E6=95=B4?= =?UTF-8?q?=EF=BC=8Cwatch=E9=87=8C=E9=9D=A2=E6=B7=B1=E5=BA=A6=E7=9B=91?= =?UTF-8?q?=E6=8E=A7=20=E6=9B=B4=E6=96=B0=E7=BB=84=E4=BB=B6=20=E3=80=90?= =?UTF-8?q?=E8=BF=87=20=20=E7=A8=8B=E3=80=91=EF=BC=9A=20=E3=80=90=E5=BD=B1?= =?UTF-8?q?=20=20=E5=93=8D=E3=80=91=EF=BC=9A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit # 类型 包含: # feat:新功能(feature) # fix:修补bug # docs:文档(documentation) # style: 格式(不影响代码运行的变动) # refactor:重构(即不是新增功能,也不是修改bug的代码变动) # test:增加测试 # chore:构建过程或辅助工具的变动 --- src/store/index.js | 1 + src/views/layout/components/menubar.vue | 10 +++++++--- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/src/store/index.js b/src/store/index.js index 085739c..78237ed 100644 --- a/src/store/index.js +++ b/src/store/index.js @@ -529,6 +529,7 @@ const store = new Vuex.Store({ params.append('class_name', form.class_name) params.append('wheelbase', form.wheelbase) params.append('category', form.category) + params.append('weight_max', form.weight_max) params.append('describe', form.describe) const res = await api.post('savePlaneClass', params) if (res.data.status === 1) { diff --git a/src/views/layout/components/menubar.vue b/src/views/layout/components/menubar.vue index b1f3caf..b5897c6 100644 --- a/src/views/layout/components/menubar.vue +++ b/src/views/layout/components/menubar.vue @@ -161,9 +161,13 @@ export default { /** * @description: 监听飞机列表 有刷新导航栏 */ - airList (val) { - this.loadRoute(val) - this.$forceUpdate()// 刷新本组件 + airList: { + handler (val) { + this.loadRoute(val) + this.$forceUpdate()// 刷新本组件 + }, + immediate: true, // 立即执行一次 + deep: true // 深度监听 }, isTap (val) { if (val) {