From 8ada51cace17f401fb33054af13c566ffcc5c315 Mon Sep 17 00:00:00 2001 From: Argo Zhang Date: Wed, 16 Sep 2026 13:10:09 +0800 Subject: [PATCH] =?UTF-8?q?refactor:=20=E9=87=8D=E6=9E=84=E4=BB=A3?= =?UTF-8?q?=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Components/UniverSheet.razor.cs | 22 ++++++++++++++----- 1 file changed, 16 insertions(+), 6 deletions(-) diff --git a/src/components/BootstrapBlazor.UniverSheet/Components/UniverSheet.razor.cs b/src/components/BootstrapBlazor.UniverSheet/Components/UniverSheet.razor.cs index 1a7239bc..fdfac82c 100644 --- a/src/components/BootstrapBlazor.UniverSheet/Components/UniverSheet.razor.cs +++ b/src/components/BootstrapBlazor.UniverSheet/Components/UniverSheet.razor.cs @@ -141,15 +141,12 @@ protected override async Task OnAfterRenderAsync(bool firstRender) UniverSheetStyleUrl }); +#if NET9_0_OR_GREATER private string UniverBundleStyleUrl { get { -#if NET9_0_OR_GREATER return Assets[UniverBundleStylePath]; -#else - return UniverBundleStylePath; -#endif } } @@ -157,13 +154,26 @@ private string UniverSheetStyleUrl { get { -#if NET9_0_OR_GREATER return Assets[UniverSheetStylePath]; + } + } #else + private static string UniverBundleStyleUrl + { + get + { + return UniverBundleStylePath; + } + } + + private static string UniverSheetStyleUrl + { + get + { return UniverSheetStylePath; -#endif } } +#endif /// /// 推送数据方法