async getInfoFormName() {return new Promise((resolve, reject) => {let infoForm: string;if (this.showBox == "basic-info-box") {infoForm = "basicInfoForm";} else {infoForm = "extendInfoForm";}resolve(infoForm);});}
使用这个Priomise,达到promise waiting的效果
await this[getInfoFormName]().then((res)=>{}).catch...