current position:Home>Grain College - image error when writing Vue with vscode

Grain College - image error when writing Vue with vscode

2022-04-29 15:41:42qq_ forty-two million three hundred and seventy-three thousand

Grain Institute - When doing the practice grain college project VSCode Write vue when image Report errors
[Vue warn]: Invalid prop: type check failed for prop “image”. Expected String, got Undefined
 Insert picture description here Problem description :
vue Error caused by type mismatch in .
The general meaning is for “image“ attribute , expect string But not defined , So it leads to mistakes .
Problems arise : The picture can't be transmitted , The console also reports the above error ([Vue warn]: Invalid prop: type check failed for prop “image”. Expected String, got Undefined)
 Insert picture description here

terms of settlement : Do type conversion
:image=“String(teacher.avatar)”, stay (teacher.avatar) prefix String, To String Type of
, You can upload pictures successfully
 Insert picture description here
https://www.freesion.com/article/5085497907/

copyright notice
author[qq_ forty-two million three hundred and seventy-three thousand ],Please bring the original link to reprint, thank you.
https://en.qdmana.com/2022/04/202204291541386207.html

Random recommended