方案一:手动删除导出的zip包中背景图片错误路径。
修改导出的下方飞鱼大屏源码配置,删除backgroundImage以及image中多出的www路径即可。
config/env.conf.json
方案二:在 飞鱼 lcapServer 目录内执行以下命令
vim ./config/config.development.js(大约在84行)
并将:
applicationPath: commonDirPath ? `${commonDirPath}/applications` : 'applications',
修改为:
applicationPath: 'applications',
随后,重启lcapServer,在 lcapServer目录内执行以下命令。之后新建的大屏再导出后就不需要手动去掉导出包中的www路径了。
npm run stop
npm run development