mpvue图片应该使用image

mpvue如果使用img标签会编译报错,应该用微信小程序自己的image

 
 换为
  

 WAIT  Compiling...                                                                                                                                                                                                       15:53:27
events.js:200
      throw er; // Unhandled 'error' event
      ^

Error: ENOENT: no such file or directory, open 'C:\work\test\mpvue-study\mpvue-demo01\src\static\images\10.jpg'
Emitted 'error' event on ReadStream instance at:
    at internal/fs/streams.js:120:12
    at FSReqCallback.oncomplete (fs.js:146:23) {
  errno: -4058,
  code: 'ENOENT',
  syscall: 'open',
  path: 'C:\\work\\test\\mpvue-study\\mpvue-demo01\\src\\static\\images\\10.jpg'
}
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] dev: `node build/dev-server.js wx`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] dev script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     C:\Users\Administrator\AppData\Roaming\npm-cache\_logs\2020-05-20T07_53_27_716Z-debug.log
PS C:\work\test\mpvue-study\mpvue-demo01>

mpvue图片应该使用image_第1张图片

你可能感兴趣的:(微信小程序,mpvue)