Fixed address error when accessing via proxy #13
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
./
)index.html
文件中添加 base 标签,路径为根路径(/
)修改原因:
如果 HAMi Web UI 通过代理访问时,由于代理路径是动态的,HAMi Web UI 静态资源路径和API Base 地址默认是根路径(
/
),导致加载静态资源和 api 请求时,路径错误,而无法显示页面通过以上修改,不影响现有静态资源加载和 api 请求,同时满足通过代理访问HAMi Web UI