安装 npm install cnvimg 导入 import baseImage from 'cnvimg' 使用 baseImage(file).then(成功).catch(失败) 注意 file传入的是文件类型,不是图片路径