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"}}