Skip to content

在 #660 下补充诊断 #776

Description

@aichuzioo-ctrl

Before you asking

  • I have searched the existing issues
  • I spend at least 5 minutes for thinking and preparing
  • I checked Frequently Asked Questions (FAQ) in Wiki page
  • I am using the latest version of AzurPilot

Describe the bug

补充复现信息,供定位:
现象:通过 app.hk1.azurlane.cloud 中继远程访问时,页面只剩左侧菜单、右侧内容区空白、布局错乱;本地 http://127.0.0.1:22267/ 完全正常。
F12 证据(远程访问时):
自定义静态资源全部 404:static/assets/gui/css/alas.css?v=... → 404
static/assets/gui/css/entry-alas.css → 404
static/assets/spa/manifest.json → 404
favicon(spa-192x192.png)、部分 js(alas-utils 等)→ 404

PyWebIO 自带 default.min.css → 304 正常
控制台:TypeError: window.alasShowAnnouncement is not a function(公告 js 未加载)
已尝试:
RemoteAccessMode: auto 和 ssh 都同样 404
远程 URL 末尾加 / 不加斜杠都同样 404
CDN: false(自托管)
初步判断:WebUI 引用的自定义静态资源(根路径相对/绝对路径)在中继的 token 子路径 https://app.hk1.azurlane.cloud//... 下无法解析/转发,导致只有 PyWebIO 默认样式生效。麻烦确认中继是否应剥离 / 前缀转发到本地,或 WebUI 静态资源是否应改为相对 / 的路径(最简单是内联 CSS)。

To Reproduce

  1. Go to '...'
  2. Click on '....'
  3. Scroll down to '....'
  4. See error

Expected behavior

No response

Relevant log output


Screenshots

No response

Anything else?

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions