Sign in
Sign up
Explore
Enterprise
Education
Search
Help
Terms of use
About Us
Explore
Enterprise
Education
Gitee Premium
Gitee AI
Sign in
Sign up
Fetch the repository succeeded.
Donate
Please sign in before you donate.
Cancel
Sign in
Scan WeChat QR to Pay
Cancel
Complete
Prompt
Switch to Alipay.
OK
Cancel
Watch
Unwatch
Watching
Releases Only
Ignoring
24
Star
248
Fork
399
XyJava
/
xingyun-front
Code
Issues
11
Pull Requests
0
Wiki
Insights
Pipelines
Service
JavaDoc
PHPDoc
Quality Analysis
Jenkins for Gitee
Tencent CloudBase
Tencent Cloud Serverless
悬镜安全
Aliyun SAE
Codeblitz
SBOM
Don’t show this again
Update failed. Please try again later!
Remove this flag
Content Risk Flag
This task is identified by
as the content contains sensitive information such as code security bugs, privacy leaks, etc., so it is only accessible to contributors of this repository.
前端项目VUE_APP_PUBLIC_PATH相对路径无效
Backlog
#I6A2IA
朱培林
Opened this issue
2023-01-11 18:03
问题: 星云ERP打包前端项目,将VUE_APP_PUBLIC_PATH设置为相对路径./,无效,打包后的代码依旧是相对于根路径。 解决: 1、将node_modules/@vue/cli-service/lib/Service.js文件中 **第398行** 代码`resolved.publicPath = resolved.publicPath.replace(/^\.\//, '')`注释掉。 2、将src/layouts/CommonLayout.vue文件中.common-layout样式里的background-image路径引入从原先的`/static/images/background.svg`改成`../../public/static/images/background.svg` 建议:作者将该问题写到README.md中
问题: 星云ERP打包前端项目,将VUE_APP_PUBLIC_PATH设置为相对路径./,无效,打包后的代码依旧是相对于根路径。 解决: 1、将node_modules/@vue/cli-service/lib/Service.js文件中 **第398行** 代码`resolved.publicPath = resolved.publicPath.replace(/^\.\//, '')`注释掉。 2、将src/layouts/CommonLayout.vue文件中.common-layout样式里的background-image路径引入从原先的`/static/images/background.svg`改成`../../public/static/images/background.svg` 建议:作者将该问题写到README.md中
Comments (
0
)
Sign in
to comment
Status
Backlog
Backlog
Doing
Done
Closed
Assignees
Not set
Labels
Not set
Label settings
Milestones
No related milestones
No related milestones
Pull Requests
None yet
None yet
Successfully merging a pull request will close this issue.
Branches
No related branch
Branches (4)
Tags (37)
master
v3
v2
v1
v4.1.0-beta.2
v4.1.0-beta.1
v4.0.0-beta.6
v4.0.0-beta.5
v4.0.0-beta.4
v4.0.0-beta.3
v4.0.0-beta.2
v4.0.0-beta.1
v3.0.0-beta.10
v3.0.0-beta.9
v3.0.0-beta.8
v3.0.0-beta.7
v3.0.0-beta.6
v3.0.0-beta.5
v3.0.0-beta.4
v3.0.0-beta.3
v3.0.0-beta.2
v3.0.0-beta.1
v1.0.0-beta.35
v1.0.0-beta.34
v1.0.0-beta.32
v1.0.0-beta.31
v1.0.0-beta.30
v1.0.0-beta.29
v1.0.0-beta.28
v1.0.0-beta.27
v1.0.0-beta.26
v1.0.0-beta.25
v1.0.0-beta.24
v1.0.0-beta.23.1
v1.0.0-beta.23
v1.0.0-beta.22
v1.0.0-beta.21
v1.0.0-beta.20
v1.0.0-beta.19
v1.0.0-beta.18
v1.0.0-beta.17
Planed to start   -   Planed to end
-
Top level
Not Top
Top Level: High
Top Level: Medium
Top Level: Low
Priority
Not specified
Serious
Main
Secondary
Unimportant
参与者(1)
1
https://gitee.com/lframework/xingyun-front.git
[email protected]
:lframework/xingyun-front.git
lframework
xingyun-front
xingyun-front
Going to Help Center
Search
Git 命令在线学习
如何在 Gitee 导入 GitHub 仓库
Git 仓库基础操作
企业版和社区版功能对比
SSH 公钥设置
如何处理代码冲突
仓库体积过大,如何减小?
如何找回被删除的仓库数据
Gitee 产品配额说明
GitHub仓库快速导入Gitee及同步更新
什么是 Release(发行版)
将 PHP 项目自动发布到 packagist.org
Comment
Repository Report
Back to the top
Login prompt
This operation requires login to the code cloud account. Please log in before operating.
Go to login
No account. Register