From d216edd0e9931d71664f33e625cff6d8131a0fad Mon Sep 17 00:00:00 2001
From: wanshenmean <cathay_xy@163.com>
Date: 星期五, 13 三月 2026 16:00:40 +0800
Subject: [PATCH] 重构: 实现前后端分离架构
---
Code/WCS/WIDESEAWCS_S7Simulator/WIDESEAWCS_S7Simulator.Web/Pages/Index.cshtml.cs | 12 ++++++++----
1 files changed, 8 insertions(+), 4 deletions(-)
diff --git a/Code/WCS/WIDESEAWCS_S7Simulator/WIDESEAWCS_S7Simulator.Web/Pages/Index.cshtml.cs b/Code/WCS/WIDESEAWCS_S7Simulator/WIDESEAWCS_S7Simulator.Web/Pages/Index.cshtml.cs
index 76a2461..8ed8ac9 100644
--- a/Code/WCS/WIDESEAWCS_S7Simulator/WIDESEAWCS_S7Simulator.Web/Pages/Index.cshtml.cs
+++ b/Code/WCS/WIDESEAWCS_S7Simulator/WIDESEAWCS_S7Simulator.Web/Pages/Index.cshtml.cs
@@ -1,19 +1,23 @@
-锘縰sing Microsoft.AspNetCore.Mvc;
using Microsoft.AspNetCore.Mvc.RazorPages;
namespace WIDESEAWCS_S7Simulator.Web.Pages;
-public class IndexModel : PageModel
+/// <summary>
+/// 瀹炰緥鍒楄〃椤�
+/// </summary>
+public class IndexModel : BasePageModel
{
private readonly ILogger<IndexModel> _logger;
- public IndexModel(ILogger<IndexModel> logger)
+ public IndexModel(ILogger<IndexModel> logger, IConfiguration configuration)
+ : base(configuration)
{
_logger = logger;
}
public void OnGet()
{
-
+ // ApiBaseUrl 鐢� BasePageModel 鑷姩澶勭悊
+ _logger.LogInformation("Loading instance list page");
}
}
--
Gitblit v1.9.3