From a61623f7887a78170e5ab91d1fbf7929ce0e82fd Mon Sep 17 00:00:00 2001
From: zmc <zmc_li@foxmail.com>
Date: 星期四, 02 十一月 2023 11:40:44 +0800
Subject: [PATCH] “去掉点击站点时页面上的搜索框和排名清单”

---
 src/stores/loadingStore.js |   23 +++++++++++++++++++++++
 1 files changed, 23 insertions(+), 0 deletions(-)

diff --git a/src/stores/loadingStore.js b/src/stores/loadingStore.js
new file mode 100644
index 0000000..d8b2d1c
--- /dev/null
+++ b/src/stores/loadingStore.js
@@ -0,0 +1,23 @@
+// 鍔犺浇鐘舵�佺殑閫昏緫绠$悊
+
+import { defineStore } from 'pinia'
+
+export const useLoadingStore = defineStore('loading', {
+  state: () => {
+    return {
+      loadingStatus: []
+    }
+  },
+  actions: {
+    clearLoading() {
+      this.loadingStatus.forEach(l => {
+        if (typeof l === 'function') {
+          l()
+        }
+      });
+      if (this.loadingStatus.length > 0) {
+        this.loadingStatus = []        
+      }
+    }
+  }
+})
\ No newline at end of file

--
Gitblit v1.9.3