jiangchengfeiyi-xiaochengxu/store/userStore.ts

26 lines
508 B
TypeScript
Raw Normal View History

2024-11-03 23:34:53 +00:00
import {defineStore} from "pinia";
import { baseUrl, testUrl , suiUrl} from '@/api/request';
export const userStore = defineStore('userInfo', {
state: () => {
return {
userInfo: {
id: 2,
userAvatar: '',
userName: '匠承非遗',
points: 800
}
}
},
actions: {
// updateUserInfo: async () => {
// const res = await uni.request({
// url: testUrl + '/user/updateUser'
// })
// console.log(res)
// },
// getLoginUser(res) {
// }
}
})