feat: 完成对接

This commit is contained in:
anonymous
2024-12-31 21:07:08 +08:00
parent ecd30a2e82
commit fecf6535a8
99 changed files with 2253 additions and 299 deletions
+3 -7
View File
@@ -15,18 +15,14 @@ export const useUserStore = defineStore(
const clearUserInfo = () => {
userInfo.value = { ...initState }
}
// 一般没有reset需求,不需要的可以删除
const reset = () => {
userInfo.value = { ...initState }
}
const isLogined = computed(() => !!userInfo.value.token)
const isLogged = computed(() => !!userInfo.value.token)
return {
userInfo,
setUserInfo,
clearUserInfo,
isLogined,
reset,
isLogged,
}
},
{