Skip to content

Conversation

CasbaL
Copy link

@CasbaL CasbaL commented Jun 11, 2025

Description

fix: #706

Additional context


What is the purpose of this pull request?

  • [ X ] Bug fix
  • New Feature
  • Documentation update
  • Other

Before submitting the PR, please make sure you do the following

  • Read the Code of Conduct and follow the Commit Convention guidelines.
  • Check that there isn't already a PR that solves the problem the same way to avoid creating a duplicate.
  • Provide a description in this PR that addresses what the PR is solving, or reference the issue that it solves (e.g. fixes #123).
  • Ideally, include relevant tests that fail without this PR but pass with it.

CasbaL added 2 commits June 10, 2025 16:19
- 在构建绝对 URL 时添加了对 assetsDir 的处理,确保静态资源路径正确
- 调整了相对 URL 的处理逻辑,增加了对 assetsDir 的支持
- 修复了 assetsDir 为空时的处理,避免生成空字符串路径
- 在 cleanBaseUrl 处理中增加了替换操作,去除末尾的点号
- 这个修改解决了在某些特定情况下可能导致资源 URL 构建不正确的问题
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

使用相对路径打包远端组件后,宿主端请求js或者css路径有误
1 participant