警告:値に関連付けられたフィールドをレンダリングする前にフォームフィールドを設定することはできません。あなたはできる

原則は明確ではありません。解決策はthis。$ nextTick(()=> {})メソッドを使用することです。

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

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

おすすめ

転載: blog.csdn.net/qq_37375667/article/details/111504550