直接在img上加@error,代码如下 <img :src="form.url" alt="" @error="imgError" > /** 图片错误 */ imgError() { this.form.url = ''// 自己默认的url },