fix: ll
All checks were successful
构建并部署前端到生产环境 / build-and-deploy (push) Successful in 53s

This commit is contained in:
sexygoat
2026-04-27 14:56:06 +08:00
parent 24b2293d71
commit 5de611d28f

View File

@@ -108,17 +108,13 @@
// 只有一个生效中的套餐
const activePackage = data.items[0];
if (activePackage.enable_virtual_data) {
// 启用虚流量
if (activePackage.enable_virtual_data) {
usedMB.value = activePackage.virtual_used_mb || 0;
totalMB.value = activePackage.data_limit_mb || 0;
remainMB.value = activePackage.virtual_remain_mb || 0;
} else {
// 未启用虚流量,使用真流量
usedMB.value = activePackage.data_usage_mb || 0;
totalMB.value = activePackage.data_limit_mb || 0;
remainMB.value = totalMB.value - usedMB.value;
}
totalMB.value = activePackage.data_limit_mb || 0;
remainMB.value = totalMB.value - usedMB.value;
// 将套餐信息(包括到期时间)传递给父组件
emit('packageLoaded', activePackage);