fix: user_logined handler checks Router before loading dashboard

Changed the user_logined bind from urlwidget action to script action
that calls sageOnLogin(dashboardUrl). This prevents the dashboard from
overwriting the Router-restored page when the URL has a ?page= param.

Fixes: F5 refresh on deep links (e.g. ?page=/rbac/users) always showing
dashboard instead of the intended page.
This commit is contained in:
yumoqing 2026-05-31 13:08:37 +08:00
parent b28a2b4a76
commit d179aeb9ed

View File

@ -160,12 +160,9 @@
{
"wid": "app",
"event": "user_logined",
"actiontype": "urlwidget",
"actiontype": "script",
"target": "self",
"options": {
"url": "{{entire_url('/dashboard_for_sage/index.ui')}}"
},
"mode": "replace"
"script": "sageOnLogin('{{entire_url('/dashboard_for_sage/index.ui')}}')"
}
],
"subwidgets": [