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
}
}
+1 -1
View File
@@ -101,7 +101,7 @@ commands:
permissions:
- framework.command.test
source: internal
last_updated: 26497.09846161
last_updated: 26605.852289433
plugin_commands:
example_plugin:
echo: *id001
+1 -1
View File
@@ -1,5 +1,5 @@
http_port: 4200
last_updated: 26497.116694526
last_updated: 26605.865204328
plugin_routes:
example_plugin:
- methods: