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

Fixed address error when accessing via proxy #13

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

ly5156
Copy link

@ly5156 ly5156 commented Dec 16, 2024

  1. 修改静态资源文件路径和 API Base 地址为相对路径(./)
  2. 同时在 index.html 文件中添加 base 标签,路径为根路径(/)

修改原因:
如果 HAMi Web UI 通过代理访问时,由于代理路径是动态的,HAMi Web UI 静态资源路径和API Base 地址默认是根路径(/),导致加载静态资源和 api 请求时,路径错误,而无法显示页面
通过以上修改,不影响现有静态资源加载和 api 请求,同时满足通过代理访问HAMi Web UI

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.

1 participant