<img style="width: 7rem;height: 7rem;border-radius: 50%;" src="{{headPath}}" onerror="onerror=null;src='./assets/imgs/avatar.png'" >
在img标签中加上 onerror="onerror=null;src='./assets/imgs/avatar.png'"