From 0b639732ffb9912c8c15f29c7eb2fcd1be2eb9ff Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=A5=9A=E7=8E=89=E5=B8=86?= Date: Mon, 12 Feb 2024 23:46:55 +0800 Subject: [PATCH] update --- src/views/list/sat/index.vue | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/views/list/sat/index.vue b/src/views/list/sat/index.vue index c7d834e..eec7b9a 100644 --- a/src/views/list/sat/index.vue +++ b/src/views/list/sat/index.vue @@ -195,10 +195,11 @@ const changeSat = async (sat: any) => { let freqFlag = false state.freqDb.map((e: any)=>{ if(data.path[1].split(" ")[1] == e.norad_id && e.mode.indexOf('FM') != -1){ + console.log(e) freqFlag = true - state.tx = parseFloat(e.uplink) - state.rx = parseFloat(e.downlink) - state.txTone = parseFloat(state.CTCSSOption.reduce((_e: any, _n: any)=>{ + state.tx = e.uplink ? parseFloat(e.uplink.split('/')[0]) : 0 + state.rx = e.downlink ? parseFloat(e.downlink.split('/')[0]) : 0 + state.txTone = parseFloat([0, ...state.CTCSSOption].reduce((_e: any, _n: any)=>{ return e.mode.indexOf(_n) != -1 ? _n : _e })) }