From 5cb471c388d5b9a6829f1045d19f0644d983822c Mon Sep 17 00:00:00 2001
From: zhengyiming <540361168@qq.com>
Date: 星期四, 20 十一月 2025 17:07:48 +0800
Subject: [PATCH] fix: s

---
 src/hooks/externalSystem.ts |   18 ++++++++++++++++++
 1 files changed, 18 insertions(+), 0 deletions(-)

diff --git a/src/hooks/externalSystem.ts b/src/hooks/externalSystem.ts
new file mode 100644
index 0000000..5e9cc54
--- /dev/null
+++ b/src/hooks/externalSystem.ts
@@ -0,0 +1,18 @@
+import * as externalSystemServices from '@/services/api/ExternalSystem';
+import { useQuery } from '@tanstack/vue-query';
+
+export function useGetCurrentExternalSystem() {
+  const { data } = useQuery({
+    queryKey: ['externalSystemServices/getCurrentExternalSystem'],
+    queryFn: async () => {
+      return await externalSystemServices.getCurrentExternalSystem({ showLoading: false });
+    },
+    initialData: () => ({} as API.GetCurrentExternalSystemOutput),
+  });
+
+  const isSignWallet = computed(() => data.value?.isSignWallet);
+
+  return {
+    isSignWallet,
+  };
+}

--
Gitblit v1.9.1