【类 型】:fix topbar刷新按钮 遍历所有飞机 向所有飞机发刷新请求

【原  因】:
【过  程】:
【影  响】:
This commit is contained in:
tk 2024-07-27 00:29:21 +08:00
parent f98d53769e
commit fddaf967da
2 changed files with 4 additions and 2 deletions

View File

@ -22,7 +22,7 @@ const store = new Vuex.Store({
skuList: [], // 商品sku列表 skuList: [], // 商品sku列表
paidOrderList: [], // 已付款 订单列表 paidOrderList: [], // 已付款 订单列表
logList: [], // 操作日志列表 logList: [], // 操作日志列表
crosFrequency: null // 对频macadd crosFrequency: null// 对频macadd
}, },
mutations: { mutations: {
/** /**

View File

@ -316,7 +316,9 @@ export default {
this.$store.dispatch('fetchCategoryList') // this.$store.dispatch('fetchCategoryList') //
this.$store.dispatch('fetchPaidOrderList') // this.$store.dispatch('fetchPaidOrderList') //
/* 向飞发送 让飞控刷新各种请求 */ /* 向飞发送 让飞控刷新各种请求 */
mqtt.publishFun(`cmd/${this.plane.macadd}`, '{"refreshRequest":1}') this.$store.state.airList.forEach(item => {
mqtt.publishFun(`cmd/${item.macadd}`, '{"refreshRequest":1}')
})
}, },
/** /**
* @description: 登出 * @description: 登出