Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

vite2 build image path 404 #4060

Closed
6 tasks done
manongLY opened this issue Jul 1, 2021 · 1 comment
Closed
6 tasks done

vite2 build image path 404 #4060

manongLY opened this issue Jul 1, 2021 · 1 comment

Comments

@manongLY
Copy link

manongLY commented Jul 1, 2021

Describe the bug

<el-image src="/src/views/system/login/image/img-password.png"></el-image>
使用,npm run build之后无法显示图片。
<img src="/src/views/system/login/image/img-username.png"/>
使用,npm run build之后正常。

Reproduction

gaitubao_截图20210701150023046_png

System Info

System:
    OS: Windows 10 10.0.19042
    CPU: (24) x64 Intel(R) Xeon(R) CPU E5-2680 v3 @ 2.50GHz
    Memory: 8.34 GB / 15.91 GB
  Binaries:
    Node: 14.17.1 - D:\Program Files\nodejs\node.EXE
    Yarn: 1.22.10 - D:\Program Files\nodejs\node_global\yarn.CMD
    npm: 6.14.13 - D:\Program Files\nodejs\npm.CMD
  Browsers:
    Edge: Spartan (44.19041.423.0), Chromium (91.0.864.59)
    Internet Explorer: 11.0.19041.1

Used Package Manager

npm

Logs

No response

Validations

@haoqunjiang
Copy link
Member

See #3459 (comment)

@github-actions github-actions bot locked and limited conversation to collaborators Jul 16, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants