fix: login redirect to index.ui instead of userinfo.ui

After login success, redirect to the main page (/index.ui)
instead of just loading userinfo.ui into user_container.
This fixes the white screen after login.
This commit is contained in:
yumoqing 2026-06-09 23:18:39 +08:00
parent 587241b6a9
commit f6027788b2

View File

@ -94,24 +94,17 @@ async with db.sqlorContext(dbname) as sor:
"wid":"self",
"event":"dismissed",
"actiontype":"urlwidget",
"target":"window.user_container",
"target":"window",
"options":{
"url":entire_url('/rbac/user/userinfo.ui')
"url":entire_url('/index.ui')
}
},
{
"wid":"self",
"event":"dismissed",
"event":"opened",
"actiontype":"script",
"target": f'body.login_window',
"target":"window.login_window",
"script":"this.destroy()"
},
{
"wid":"self",
"event":"dismissed",
"actiontype":"script",
"target":"self",
"script":"if(bricks.app && bricks.app.dispatch) bricks.app.dispatch('user_logined')"
}
]
}