添加全局用户状态
This commit is contained in:
parent
7823fac142
commit
bd7022339c
8
src/stores/userinfo-store.ts
Normal file
8
src/stores/userinfo-store.ts
Normal file
@ -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 }
|
||||
})
|
Loading…
Reference in New Issue
Block a user