我有一個表單,可以編輯用戶。為此,axios 檢索用戶對象的數據(通過 id)并顯示在輸入字段中。輸入字段和日期選擇器沒有問題 - 因此顯示信息。但數據未顯示在選擇字段中。我想顯示之前選擇的選項(我有另一個表單,您可以在其中創建用戶。用戶的ID是通過props傳遞的。),但出現錯誤如下:[Vue warn]: Property or method "bundeslaender" is not defined on the instance but referenced during render. Make sure that this property is reactive, either in the data option, or for class-based components, by initializing the property.我得到同樣的錯誤vorgesetzten。還應該可以更改選定的選項。
如何從 axios 檢索數據并將其填充到 Vue.js 中的編輯表單(選擇選項)中?
有只小跳蛙
2023-09-14 21:58:30