From f98d53769ecaaf40b94db8088884748ce757f8cf Mon Sep 17 00:00:00 2001 From: tk Date: Fri, 26 Jul 2024 23:51:31 +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=9Afeat=20topbar=E7=9A=84=E5=88=B7=E6=96=B0=E6=8C=89?= =?UTF-8?q?=E9=92=AE=20=E8=AE=A9esp=E5=90=91=E9=A3=9E=E6=8E=A7=E5=88=B7?= =?UTF-8?q?=E6=96=B0=E8=AF=B7=E6=B1=82=E5=8A=9F=E8=83=BD=20=E3=80=90?= =?UTF-8?q?=E5=8E=9F=20=20=E5=9B=A0=E3=80=91=EF=BC=9A=20=E3=80=90=E8=BF=87?= =?UTF-8?q?=20=20=E7=A8=8B=E3=80=91=EF=BC=9A=E5=8F=91=E5=B8=83refreshReque?= =?UTF-8?q?st=E4=B8=BB=E9=A2=98=20=E3=80=90=E5=BD=B1=20=20=E5=93=8D?= =?UTF-8?q?=E3=80=91=EF=BC=9A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/layout/components/headbar.vue | 5 ++++- src/views/layout/components/main/planes/index.vue | 4 ---- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/src/views/layout/components/headbar.vue b/src/views/layout/components/headbar.vue index ac0fcc7..83166bb 100644 --- a/src/views/layout/components/headbar.vue +++ b/src/views/layout/components/headbar.vue @@ -153,6 +153,7 @@ import Breadcrumb from '@/components/Breadcrumb' import QuestTabs from '@/components/QuestTabs' import SelectionShopId from '@/components/SelectionShopId' import { speakText } from '@/utils/index' +import mqtt from '@/utils/mqtt' export default { name: 'Headbar', @@ -305,7 +306,7 @@ export default { * @description: 刷新当前页面 */ refreshPage () { - /* init */ + /* init 数据接口 */ this.$store.commit('app/setIsMobile') // 获取客户端平台类型 this.$store.dispatch('fetchAirList') // 获取飞机列表 this.$store.dispatch('fetchShopList') // 获取商铺列表 @@ -314,6 +315,8 @@ export default { this.$store.dispatch('fetchRouteList') // 获取航线列表 this.$store.dispatch('fetchCategoryList') // 获取分类列表(小程序) this.$store.dispatch('fetchPaidOrderList') // 获取订单列表 + /* 向飞发送 让飞控刷新各种请求 */ + mqtt.publishFun(`cmd/${this.plane.macadd}`, '{"refreshRequest":1}') }, /** * @description: 登出 diff --git a/src/views/layout/components/main/planes/index.vue b/src/views/layout/components/main/planes/index.vue index aa6bcc7..8a95800 100644 --- a/src/views/layout/components/main/planes/index.vue +++ b/src/views/layout/components/main/planes/index.vue @@ -11,7 +11,6 @@