surl-front/src/stores/userinfo-store.ts

8 lines
211 B
TypeScript
Raw Normal View History

2024-07-30 10:10:14 +08:00
import {defineStore} from "pinia";
import {ref} from "vue";
export const useUserinfoStore = defineStore('userinfo', ()=>{
const token = ref('')
const username = ref('')
return { token, username }
})