From 4296af77e399d2711d07869a339bcc2b43d727b4 Mon Sep 17 00:00:00 2001 From: cpf <1105965053@qq.com> Date: Thu, 19 May 2022 16:28:37 +0800 Subject: [PATCH] =?UTF-8?q?=E8=AE=A1=E7=AE=97=E6=97=B6=E9=97=B4=E5=8F=96?= =?UTF-8?q?=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../edit-update-category/edit-update-category.component.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/app/pages/license/update-category/edit-update-category/edit-update-category.component.ts b/src/app/pages/license/update-category/edit-update-category/edit-update-category.component.ts index fe390b5..2fe07e8 100644 --- a/src/app/pages/license/update-category/edit-update-category/edit-update-category.component.ts +++ b/src/app/pages/license/update-category/edit-update-category/edit-update-category.component.ts @@ -72,7 +72,7 @@ export class EditUpdateCategoryComponent implements OnInit { if (time <= 0) { this.data2.validityDays = 0 } else { - this.data2.validityDays = time / (1000*3600*24); + this.data2.validityDays = Math.floor(time / (1000*3600*24)); } } } @@ -89,7 +89,7 @@ export class EditUpdateCategoryComponent implements OnInit { if (time <= 0) { this.data2.validityDays = 0 } else { - this.data2.validityDays = time / (1000*3600*24); + this.data2.validityDays = Math.floor(time / (1000*3600*24)); } } else { this.data2.validityDays = 999