You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Failed to read /login-logo.e0912caf.jpg on app protocol Error: ENOENT, login-logo.e0912caf.jpg not found in /opt/my-electron-demo/dist_electron/linux-unpacked/resources/app.asar
Failed to read /element-icons.f1a45d74.ttf on app protocol Error: ENOENT, element-icons.f1a45d74.ttf not found in /opt/my-electron-demo/dist_electron/linux-unpacked/resources/app.asar
The text was updated successfully, but these errors were encountered:
Version
5.0.8
Environment info
Steps to reproduce
module.exports = {
publicPath: process.env.NODE_ENV === 'production' ? '././' : '/'
}
electron+vue项目中配置了publicPath属性
在css中设置背景图片时使用 background: url('../../assets/img/login-logo.jpg') no-repeat; 打包后运行的图片地址是url(app:///img/login-bg.00552e69.png),导致找不到该文件
并且element-ui的图标也无法使用
What is expected?
打包后的图片地址为url(app:/./img/login-bg.00552e69.png)
element-ui的图标字体能正常使用
What is actually happening?
Failed to read /login-logo.e0912caf.jpg on app protocol Error: ENOENT, login-logo.e0912caf.jpg not found in /opt/my-electron-demo/dist_electron/linux-unpacked/resources/app.asar
Failed to read /element-icons.f1a45d74.ttf on app protocol Error: ENOENT, element-icons.f1a45d74.ttf not found in /opt/my-electron-demo/dist_electron/linux-unpacked/resources/app.asar
The text was updated successfully, but these errors were encountered: