From fb3267f978106f4e57de3caa85f11e907246c4b2 Mon Sep 17 00:00:00 2001 From: hi2hi Date: Tue, 10 Dec 2024 07:07:02 +0000 Subject: [PATCH] =?UTF-8?q?=E2=9C=A8=20=E4=BF=AE=E5=A4=8D=E8=B4=A6?= =?UTF-8?q?=E5=8D=95=E5=91=A8=E6=9C=9F=E6=A0=87=E7=AD=BE=E7=9A=84=E6=98=BE?= =?UTF-8?q?=E7=A4=BA=E9=80=BB=E8=BE=91=EF=BC=8C=E7=A1=AE=E4=BF=9D=E5=9C=A8?= =?UTF-8?q?=E9=80=82=E5=BD=93=E6=83=85=E5=86=B5=E4=B8=8B=E6=98=BE=E7=A4=BA?= =?UTF-8?q?=E5=91=A8=E6=9C=9F=E4=BF=A1=E6=81=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/composable/server-bill-and-plan.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/views/composable/server-bill-and-plan.js b/src/views/composable/server-bill-and-plan.js index d6ff9b3..4334420 100644 --- a/src/views/composable/server-bill-and-plan.js +++ b/src/views/composable/server-bill-and-plan.js @@ -60,6 +60,7 @@ export default (params) => { months = 6; break; default: + cycleLabel = billingDataMod.cycle; break; } } @@ -69,12 +70,12 @@ export default (params) => { let label; if (billingDataMod.amount.toString() === '-1') { amountValue = '按量'; - label = `每${cycleLabel}`; + label = cycleLabel ? `每${cycleLabel}` : ''; } else if (billingDataMod.amount.toString() === '0') { amountValue = config.nazhua.freeAmount || '免费'; isFree = true; } else { - label = `${cycleLabel}付`; + label = cycleLabel ? `${cycleLabel}付` : ''; } obj.billing = { label,