update 取消默认打开

This commit is contained in:
zyxucp
2025-06-10 14:37:26 +08:00
parent 8a19f61689
commit 901e81c61b

View File

@@ -123,13 +123,15 @@ app.UseEndpoints(endpoints =>
{
endpoints.MapControllers();
});
Task.Run(async () =>
{
await Task.Delay(3000);
System.Diagnostics.Process.Start("explorer.exe", "http://localhost:5000");
});
app.Run();
//延迟3秒后打开浏览器 localhost:5000
//Task.Run(async () =>
//{
// await Task.Delay(3000);
// System.Diagnostics.Process.Start("explorer.exe", "http://localhost:5000");
//});
app.Run();