use ??.
This commit is contained in:
1 parent
ab5cb8610b
commit
edce7c4cc7
15 files changed
+30
-29
No files matched your search
@@ -8,7 +8,7 @@ import { getUserInfo } from "../api"
|
||||
|
||||
export const useUserStore = defineStore("user", () => {
|
||||
const { data: profile, isFinished, execute } = getUserInfo("")
|
||||
const user = computed(() => profile.value.user || {})
|
||||
const user = computed(() => profile?.value?.user ?? {})
|
||||
const isAuthed = computed(() => !!user.value.email)
|
||||
const isAdminRole = computed(
|
||||
() =>
|
||||
|
||||
Reference in new issue
Block a user