vue+Django项目( js error)Error in render: "TypeError: Cannot read properties of null (reading 'id')"
问题现象
Error in render: "TypeError: Cannot read properties of null (reading 'id')"
解决方法
this.allMenuLabel = response.data 加 results: this.allMenuLabel = response.data.results