chore
This commit is contained in:
@@ -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 *@
|
||||
|
||||
Reference in New Issue
Block a user