fix bug
This commit is contained in:
@ -185,7 +185,7 @@ export class BannerComponentsAddComponent 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 {
|
||||
@ -207,7 +207,7 @@ export class BannerComponentsAddComponent 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