From fcb89e36ac3f61171754ef5f226867aac0e81398 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=A5=9A=E7=8E=89=E5=B8=86?= Date: Tue, 30 Jan 2024 08:39:39 +0800 Subject: [PATCH] update --- src/views/list/search-table/index.vue | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/views/list/search-table/index.vue b/src/views/list/search-table/index.vue index ec24d90..743c690 100644 --- a/src/views/list/search-table/index.vue +++ b/src/views/list/search-table/index.vue @@ -414,8 +414,8 @@ _channelhex += "00" } - const _rx = parseInt((_channel.tx * 100000).toFixed(0)) - parseInt((_channel.rx * 100000).toFixed(0)) - _channelhex += !Number.isNaN(_rx) ? _rx.toString(16).padStart(8, '0') : '00000000' + const _tx = Math.abs(parseInt((_channel.tx * 100000).toFixed(0)) - parseInt((_channel.rx * 100000).toFixed(0))) + _channelhex += !Number.isNaN(_tx) ? _tx.toString(16).padStart(8, '0') : '00000000' _channelhex += parseInt((_channel.rx * 100000).toFixed(0)).toString(16).padStart(8, '0') console.log(_channelhex)