From bd7022339c4c0b5242eb359a7d7c09a8de6df9c4 Mon Sep 17 00:00:00 2001 From: 05412 <2738076308@qq.com> Date: Tue, 30 Jul 2024 10:10:14 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E5=85=A8=E5=B1=80=E7=94=A8?= =?UTF-8?q?=E6=88=B7=E7=8A=B6=E6=80=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/stores/userinfo-store.ts | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 src/stores/userinfo-store.ts diff --git a/src/stores/userinfo-store.ts b/src/stores/userinfo-store.ts new file mode 100644 index 0000000..8936f01 --- /dev/null +++ b/src/stores/userinfo-store.ts @@ -0,0 +1,8 @@ +import {defineStore} from "pinia"; +import {ref} from "vue"; + +export const useUserinfoStore = defineStore('userinfo', ()=>{ + const token = ref('') + const username = ref('') + return { token, username } +}) \ No newline at end of file