From f6027788b25cc0f8594ae51fc1ba228da1a3c1c1 Mon Sep 17 00:00:00 2001 From: yumoqing Date: Tue, 9 Jun 2026 23:18:39 +0800 Subject: [PATCH] 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. --- wwwroot/user/up_login.dspy | 37 +++++++++++++++---------------------- 1 file changed, 15 insertions(+), 22 deletions(-) diff --git a/wwwroot/user/up_login.dspy b/wwwroot/user/up_login.dspy index e249134..7920817 100644 --- a/wwwroot/user/up_login.dspy +++ b/wwwroot/user/up_login.dspy @@ -90,29 +90,22 @@ async with db.sqlorContext(dbname) as sor: "message":f"{r[0].username} Welcome back" }, "binds":[ - { - "wid":"self", - "event":"dismissed", - "actiontype":"urlwidget", - "target":"window.user_container", - "options":{ - "url":entire_url('/rbac/user/userinfo.ui') - } - }, - { - "wid":"self", - "event":"dismissed", - "actiontype":"script", - "target": f'body.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')" + { + "wid":"self", + "event":"dismissed", + "actiontype":"urlwidget", + "target":"window", + "options":{ + "url":entire_url('/index.ui') } + }, + { + "wid":"self", + "event":"opened", + "actiontype":"script", + "target":"window.login_window", + "script":"this.destroy()" + } ] } return {