경고 : 값과 연결된 필드를 렌더링하기 전에 양식 필드를 설정할 수 없습니다. 당신은 할 수 있습니다

원칙은 명확하지 않습니다. 해결책은 this. $ nextTick (() => {}) 메서드를 사용하는 것입니다.

created () { 
  this.productIn = this. $ route.query.productIn 
  let productCode = this.productIn.productCode 

  this. $ nextTick (() => { 
    this.form.setFieldsValue ({ 
      productCode : productCode 
    }) 
  }) 
},

추천

출처blog.csdn.net/qq_37375667/article/details/111504550