When using vue-lazyload to implement lazy loading of images in the vue2 project, an error occurred. It was found to be a version problem. Changing the package-lock.json file directly to version 1.3.3 had no effect. Need to uninstall and reinstall the plug-in.
//先卸载插件
npm uninstall vue-lazyload
//重新安装
npm i [email protected]
problem solved!