diff --git a/src/store/index.ts b/src/store/index.ts
index 5fff0eb..29705dd 100644
--- a/src/store/index.ts
+++ b/src/store/index.ts
@@ -1,11 +1,13 @@
import {useAuthStore} from '@/store/modules/userStore.ts';
import {useThemeStore} from "@/store/modules/themeStore.ts";
import {langStore} from "@/store/modules/langStore.ts";
+import {useClientStore} from "@/store/modules/clientStore.ts";
export default function useStore() {
return {
user: useAuthStore(),
theme: useThemeStore(),
lang: langStore(),
+ client: useClientStore(),
};
}
diff --git a/src/store/modules/clientStore.ts b/src/store/modules/clientStore.ts
new file mode 100644
index 0000000..b43914c
--- /dev/null
+++ b/src/store/modules/clientStore.ts
@@ -0,0 +1,31 @@
+import {defineStore} from 'pinia';
+import {ref} from "vue";
+
+export const useClientStore = defineStore(
+ 'clientId',
+ () => {
+ const clientId = ref
();
+
+ function setClientId(id: string) {
+ clientId.value = id;
+ }
+
+ function getClientId() {
+ return clientId.value;
+ }
+
+ return {
+ clientId,
+ setClientId,
+ getClientId
+ };
+ },
+ {
+ // 开启数据持久化
+ persist: {
+ key: 'clientId',
+ storage: localStorage,
+ paths: ["clientId"],
+ }
+ }
+);
diff --git a/src/views/Forget/ForgetPage.vue b/src/views/Forget/ForgetPage.vue
index e175794..5c8e4c6 100644
--- a/src/views/Forget/ForgetPage.vue
+++ b/src/views/Forget/ForgetPage.vue
@@ -91,6 +91,20 @@
:events="resetPasswordRotateEvent"
/>