diff --git a/wwwroot/promote/index.dspy b/wwwroot/promote/index.dspy index bb76d51..2d27a2b 100644 --- a/wwwroot/promote/index.dspy +++ b/wwwroot/promote/index.dspy @@ -40,7 +40,7 @@ if not user: "label": "登录", "css": "primary", "actiontype": "link", - "url": env.entire_url('/rbac/user/login') + f"?back={back_url}" if back_url else env.entire_url('/rbac/user/login') + "url": env.entire_url('/rbac/user/login.ui') + f"?back={back_url}" if back_url else env.entire_url('/rbac/user/login.ui') } }, { diff --git a/wwwroot/promote/index.ui b/wwwroot/promote/index.ui index e7f656f..84cf320 100644 --- a/wwwroot/promote/index.ui +++ b/wwwroot/promote/index.ui @@ -8,7 +8,7 @@ {% else %} {% set dspy_with_param = entire_url('./index.dspy') %} {% endif %} -{% set login_back = entire_url('/rbac/user/login') + '?back=' + dspy_with_param %} +{% set login_back = entire_url('/rbac/user/login.ui') + '?back=' + dspy_with_param %} {% set register_back = entire_url('/rbac/user/register') + '?back=' + dspy_with_param %} {% if not user %} {