添加全局用户状态

This commit is contained in:
05412 2024-07-30 10:10:14 +08:00
parent 7823fac142
commit bd7022339c

View 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 }
})