fix bug
This commit is contained in:
@ -183,7 +183,7 @@ export class ScrollimgComponentsAddComponent implements OnInit {
|
||||
if (this.queryParams.id !== '0') {
|
||||
params.advertisementId = this.queryParams.id;
|
||||
}
|
||||
if (this.sf.value.takeEffectType === 2) {
|
||||
if (this.sf?.value.takeEffectType === 2) {
|
||||
if (this.changeTimeFlag) {
|
||||
params.takeEffectTime = format(this.detailData.takeEffectTime, 'yyyy-MM-dd HH:mm');
|
||||
} else {
|
||||
@ -205,7 +205,7 @@ export class ScrollimgComponentsAddComponent implements OnInit {
|
||||
if (this.queryParams.type === 'add') {
|
||||
delete params.id;
|
||||
}
|
||||
if (this.sf.value.takeEffectType === 2) {
|
||||
if (this.sf?.value.takeEffectType === 2) {
|
||||
if (this.changeTimeFlag) {
|
||||
params.takeEffectTime = format(this.detailData.takeEffectTime, 'yyyy-MM-dd HH:mm');
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user