the following code indicates that the pop-up box will be emptied when the pop-up box is closed, that is, clearFlag is false, in case there is cache information the next time the pop-up box is opened.
but when the pop-up box fills out the form, save and get the information. Once the method is cleared, the save will not get the data, which is the""value. Method 2 can get the value normally.
could you tell me the specific difference between the two methods:
clearFalg(){
if(this.clearFalg == false){
//: this.subForm.tempInventoryId =""
//:
this.subForm = {
tempInventoryId:""
}
}
}