From 4709982e0e0f3b9534c2d8d3c05f2768f176c89c Mon Sep 17 00:00:00 2001 From: SHAOJIAHAO <55341701@qq.com> Date: Fri, 1 Jul 2022 16:14:01 +0800 Subject: [PATCH] =?UTF-8?q?[=E5=AE=8C=E5=96=84]=E4=BF=AE=E6=94=B9=E4=B8=8A?= =?UTF-8?q?=E4=BC=A0=E9=99=84=E4=BB=B6bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../pages/license/update-category/update-category.component.ts | 2 +- .../update-license-list/update-license-list.component.html | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/app/pages/license/update-category/update-category.component.ts b/src/app/pages/license/update-category/update-category.component.ts index 9140905..d4a4910 100644 --- a/src/app/pages/license/update-category/update-category.component.ts +++ b/src/app/pages/license/update-category/update-category.component.ts @@ -158,7 +158,7 @@ export class UpdateCategoryComponent implements OnInit { let newUrl = window.location.protocol + '//' + window.location.host + body.imageUrl body.imageUrl = newUrl } - if (body.hasAttachmentDefault && body.attachment) { + if (body.hasAttachmentDefault && body.attachment && body.attachment.indexOf('http') == -1) { let newUrl = window.location.protocol + '//' + window.location.host + body.attachment body.attachment = newUrl } diff --git a/src/app/pages/plan-admin/update-license-list/update-license-list.component.html b/src/app/pages/plan-admin/update-license-list/update-license-list.component.html index eb08465..485bf8e 100644 --- a/src/app/pages/plan-admin/update-license-list/update-license-list.component.html +++ b/src/app/pages/plan-admin/update-license-list/update-license-list.component.html @@ -81,7 +81,7 @@ - {{i.value.endDate | date:"yyyy-MM-dd"}} + {{i.value.endDate == '9999-12-31T23:59:59.9999999' ? '长期' : i.value.endDate | date:"yyyy-MM-dd"}}