This commit is contained in:
@@ -289,19 +289,6 @@
|
||||
loading.value = false;
|
||||
};
|
||||
|
||||
// 计算信号强度
|
||||
const calculateSignalStrength = (rsrp, rsrq, rssi) => {
|
||||
// 简单的信号强度计算逻辑
|
||||
if (!rsrp && !rsrq && !rssi) return '-';
|
||||
|
||||
const rsrpNum = parseInt(rsrp);
|
||||
if (isNaN(rsrpNum)) return '-';
|
||||
|
||||
if (rsrpNum >= -80) return '强';
|
||||
if (rsrpNum >= -95) return '中';
|
||||
return '弱';
|
||||
};
|
||||
|
||||
// 处理套餐加载完成事件(从 TrafficCard 组件传递过来)
|
||||
const handlePackageLoaded = (activePackage) => {
|
||||
if (activePackage && activePackage.expires_at) {
|
||||
|
||||
Reference in New Issue
Block a user