updte 延迟3秒启动

This commit is contained in:
zyxucp
2025-03-29 12:51:43 +08:00
parent 8c4030ae43
commit a24c5548e1

View File

@@ -123,5 +123,13 @@ 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