fix: Sentinel 改用前端轮询替代 SSE (解决 EventSource 认证问题)

SSE 跨 panel_auth 认证层不可靠 → 改用 setInterval 每 2s fetch /sentinel/api/nodes

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
qinglong
2026-06-13 18:00:34 +08:00
parent a21e092207
commit c416b04798
4 changed files with 30 additions and 14 deletions
+22
View File
@@ -152,5 +152,27 @@
"framework.command.execute"
],
"timestamp": 26497.118727235
},
"d030c615": {
"plugin_name": "example_plugin",
"permissions": [
"plugin.example.read",
"plugin.example.write",
"plugin.example.execute",
"framework.event.subscribe",
"framework.command.execute"
],
"timestamp": 26605.864670631
},
"fe466e0e": {
"plugin_name": "sentinel",
"permissions": [
"plugin.sentinel.read",
"plugin.sentinel.write",
"plugin.network.access",
"framework.event.subscribe",
"framework.command.execute"
],
"timestamp": 26605.866739485
}
}