diff --git a/Directory.Build.props b/Directory.Build.props
index d00fc50..3b9ec4f 100644
--- a/Directory.Build.props
+++ b/Directory.Build.props
@@ -1,7 +1,7 @@
- 0.1.29
+ 0.1.30
1.17.1
diff --git a/src/GraphRag.Net.Web/Pages/Graph/Graph.razor b/src/GraphRag.Net.Web/Pages/Graph/Graph.razor
index c96ef17..dca2468 100644
--- a/src/GraphRag.Net.Web/Pages/Graph/Graph.razor
+++ b/src/GraphRag.Net.Web/Pages/Graph/Graph.razor
@@ -8,58 +8,82 @@
@code
{
-
+ [Inject]
+ protected IJSRuntime _jsRuntime { get; set; }
+
+ protected override async Task OnAfterRenderAsync(bool firstRender)
+ {
+ if (firstRender)
+ {
+ // 确保所有脚本加载完成后,调用初始化 Vue 的 JavaScript 函数
+ await Task.Delay(500); // 短暂延时
+
+ try
+ {
+ await _jsRuntime.InvokeVoidAsync("initializeVueApp");
+ }
+ catch (Exception ex)
+ {
+ Console.WriteLine(ex.Message);
+ }
+ }
+ }
}
\ No newline at end of file