From 016f3d49f4f56de15e0d69960752877af89131a5 Mon Sep 17 00:00:00 2001 From: Master Date: Fri, 5 Jul 2024 12:34:49 +0800 Subject: [PATCH] =?UTF-8?q?=E6=95=B4=E7=90=86=E6=A8=A1=E7=89=88?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Admin.NET.Web.Entry/wwwroot/Template/index.vue.vm | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/Admin.NET/Admin.NET.Web.Entry/wwwroot/Template/index.vue.vm b/Admin.NET/Admin.NET.Web.Entry/wwwroot/Template/index.vue.vm index 9e8c94f8..659e6dc8 100644 --- a/Admin.NET/Admin.NET.Web.Entry/wwwroot/Template/index.vue.vm +++ b/Admin.NET/Admin.NET.Web.Entry/wwwroot/Template/index.vue.vm @@ -1,4 +1,8 @@ @{ + string LowerFirstLetter(string text) + { + return text.ToString()[..1].ToLower() + text[1..]; // 首字母小写 + } var pkField = Model.TableField.Where(c => c.ColumnKey == "True").FirstOrDefault(); string pkFieldName = null; if(pkField != null && !string.IsNullOrEmpty(pkField.PropertyName)) @@ -397,10 +401,3 @@ const handleDelete = (row: any) => { width: 100%; } - -@{ -string LowerFirstLetter(string text) -{ -return text.ToString()[..1].ToLower() + text[1..]; // 首字母小写 -} -} \ No newline at end of file