From cc9d697f9c572888c08ef38c33d49faa0383f0cc Mon Sep 17 00:00:00 2001
From: Putoo <290555932@qq.com>
Date: Tue, 28 Apr 2026 14:49:43 +0800
Subject: [PATCH] 111
---
Web/src/components/PageLoading.vue | 82 +++++++++++++++++++++++++++
Web/src/composables/usePageLoading.ts | 14 +++++
Web/src/middleware/page-loading.ts | 3 +
3 files changed, 99 insertions(+)
create mode 100644 Web/src/components/PageLoading.vue
create mode 100644 Web/src/composables/usePageLoading.ts
create mode 100644 Web/src/middleware/page-loading.ts
diff --git a/Web/src/components/PageLoading.vue b/Web/src/components/PageLoading.vue
new file mode 100644
index 0000000..4653bd1
--- /dev/null
+++ b/Web/src/components/PageLoading.vue
@@ -0,0 +1,82 @@
+
+
+
+
+
+
+
+
+ 加载中...
+
+
+
+
+
+
+
+
+
+
diff --git a/Web/src/composables/usePageLoading.ts b/Web/src/composables/usePageLoading.ts
new file mode 100644
index 0000000..3c5fa12
--- /dev/null
+++ b/Web/src/composables/usePageLoading.ts
@@ -0,0 +1,14 @@
+export class PageLoading{
+
+ private static get PageLoading() {
+ return useAppStore()
+ }
+ public static Loading(): void {
+ this.PageLoading.startLoading("加载中...");
+ }
+ public static Close(): void {
+
+ this.PageLoading.endLoading();
+ }
+}
+
diff --git a/Web/src/middleware/page-loading.ts b/Web/src/middleware/page-loading.ts
new file mode 100644
index 0000000..bf0ae82
--- /dev/null
+++ b/Web/src/middleware/page-loading.ts
@@ -0,0 +1,3 @@
+export default defineNuxtRouteMiddleware(() => {
+ PageLoading.Loading()
+})