This commit is contained in:
yxw
2025-12-05 15:06:15 +08:00
parent ec36b7c8b9
commit 2972886576
6 changed files with 262 additions and 30 deletions

View File

@@ -39,6 +39,11 @@ else
<FormItem>
<Button Type="ButtonType.Primary" HtmlType="submit" Class="submit" Size="ButtonSize.Large" Block>登录</Button>
</FormItem>
<FormItem>
<a @onclick="setAccount">
设置开发帐号
</a>
</FormItem>
</Form>
</Card>
</GridCol>
@@ -185,6 +190,12 @@ else
await LoginAsync();
}
}
void setAccount()
{
login.Account = "admin";
login.Password = "admin888";
}
}
@* 页面内 JS 辅助:用于在 Server 模式下从浏览器发起 POST 并携带凭证,使浏览器接收 Set-Cookie *@