|
|
@ -4,7 +4,7 @@ import { ref, reactive } from 'vue' |
|
|
|
const userStore = defineStore('userStore', () => { |
|
|
|
const userStore = defineStore('userStore', () => { |
|
|
|
const userInfo = reactive<any>({}) |
|
|
|
const userInfo = reactive<any>({}) |
|
|
|
const isLogin = ref(false) |
|
|
|
const isLogin = ref(false) |
|
|
|
const token = ref('eyJhbGciOiJIUzUxMiJ9.eyJzdWIiOiJ4aWFvMTExMSIsImNyZWF0ZWQiOjE3MjQ2NTQxNjMxMjIsImV4cCI6MTcyNTI1ODk2M30.uIEZhGG6-XGomV0aqpamOn54VxP4ItfM_ip9EgI0ohcYPyEnln6dXBoG8eVBNlbigglIjw5V1N5bHPdIAifeaA') |
|
|
|
const token = ref('') |
|
|
|
|
|
|
|
|
|
|
|
userGetInfoService(token.value).then(res => { |
|
|
|
userGetInfoService(token.value).then(res => { |
|
|
|
// @ts-ignore
|
|
|
|
// @ts-ignore
|
|
|
|