商城列表需要优化

This commit is contained in:
bobobobo
2025-12-24 22:21:24 +08:00
parent b67f9611c7
commit 334c0800fa
8 changed files with 202 additions and 64 deletions

View File

@@ -0,0 +1,16 @@
import { storeToRefs } from 'pinia'
import { useUserStore } from '@/stores/user'
/**
* 统一提供响应式的用户信息和相关操作
*/
export const useAuthUser = () => {
const userStore = useUserStore()
// 响应式状态state & getters
const { userInfo } = storeToRefs(userStore)
return {
userInfo
}
}