koishijs / webui

WebUI plugins for Koishi
https://koishi.online
GNU Affero General Public License v3.0
29 stars 14 forks source link

Bug: status bar multiple copies #89

Closed MirrorCY closed 9 months ago

MirrorCY commented 1 year ago

Describe the bug

Updating the console plugin will cause the status bar to display multiple copies, restarting koishi can resolve this issue.

F5 also resolve that.

Steps to reproduce

  1. Keep all plugins up to date
  2. Downgrade console to 5.1.10
  3. Upgrade console to 5.1.14

Expected behavior

After the update, no wrong display appears.

Screenshots

image

Versions

Additional context

No response

ilharp commented 1 year ago

image

确认是在 Koishi 本体 Full Reload 而 webui 未刷新的情况下会出现。

Hieuzest commented 1 year ago

此问题在每次打开一个新的Console网页后reload任何console插件时稳定复现(即unload时没有清除),且仅在对每个插件的第一次reload时有效。 并不局限于status,任何console插件均可,比如往首页的slot duplicate

shigma commented 1 year ago

https://github.com/koishijs/webui/blob/9589e1afafb8e165ba1c7d8082e8536ff2027ff7/packages/client/client/loader.ts#L74

非常奇怪,我明明写了清除的逻辑。

而且只有 prod 可以复现,导致很难调试。

shigma commented 9 months ago

这个问题目前是不是没了……如果前面最近还有发现的话可以说一下。

MirrorCY commented 9 months ago

Hmm... 最近没听说有这个问题,感觉可以直接关了(

shigma commented 9 months ago

OK 可能之前修过,以后如果遇到问题再说吧。