mihomo icon indicating copy to clipboard operation
mihomo copied to clipboard

[Bug] UI 文件403

Open confuseder opened this issue 1 year ago • 6 comments

Verify steps

  • [X] 确保你使用的是本仓库最新的的 mihomo 或 mihomo Alpha 版本 Ensure you are using the latest version of Mihomo or Mihomo Alpha from this repository.
  • [X] 如果你可以自己 debug 并解决的话,提交 PR 吧 Is this something you can debug and fix? Send a pull request! Bug fixes and documentation fixes are welcome.
  • [X] 我已经在 Issue Tracker 中找过我要提出的问题 I have searched on the issue tracker for a related issue.
  • [X] 我已经使用 Alpha 分支版本测试过,问题依旧存在 I have tested using the dev branch, and the issue still exists.
  • [X] 我已经仔细看过 Documentation 并无法自行解决问题 I have read the documentation and was unable to solve the issue.
  • [X] 这是 Mihomo 核心的问题,并非我所使用的 Mihomo 衍生版本(如 OpenMihomo、KoolMihomo 等)的特定问题 This is an issue of the Mihomo core per se, not to the derivatives of Mihomo, like OpenMihomo or KoolMihomo.

Mihomo version

v1.18.1

What OS are you seeing the problem on?

Linux

Mihomo config

ipv6: true
allow-lan: true
mixed-port: 7890
unified-delay: false
tcp-concurrent: true
external-controller: 0.0.0.0:9090
external-ui: ui
# external-ui-url: "https://github.com/MetaCubeX/metacubexd/archive/refs/heads/gh-pages.zip"

Mihomo log

No response

Description

Clash Meta手动将前端UI解压放进去后访问assets里的资源会403报错

confuseder avatar Feb 21 '24 11:02 confuseder

执行ls -al ${homodir}/ui,并贴出结果,homodir自行修改为mihomo的工作目录

xishang0128 avatar Feb 21 '24 15:02 xishang0128

@E021ntox ui不会自动下载,需要手动触发api

xishang0128 avatar Mar 29 '24 17:03 xishang0128

@E021ntox 这不是一个好的行为,而且会消耗额外,不必要的内存

xishang0128 avatar Mar 29 '24 17:03 xishang0128

@E021ntox ui不会自动下载,需要手动触发api

手动触发哪个api,现在UI不会自动更新啊,重启了也还是老版本的,而且不知道存到哪里去了,配置的目录是空的

LordHumphrey avatar Jul 10 '24 01:07 LordHumphrey

@LordHumphrey 根据你配置文件来的

vj23456 avatar Jul 10 '24 01:07 vj23456

image 配置文件没有写明目录,默认应该是UI吧,访问连接404呀,谢谢兄弟。 image

获取可以加一个开关,是否默认下载到本地

LordHumphrey avatar Jul 10 '24 02:07 LordHumphrey