fix: userinfo
This commit is contained in:
parent
facb23cefd
commit
e142be965c
@ -11,7 +11,7 @@ const userStore = useUserStore();
|
||||
const { userInfo } = storeToRefs(userStore);
|
||||
|
||||
const withdrawLink = computed(() => {
|
||||
return userInfo.value.isSetBank ? "/withdraw" : "/Setbank";
|
||||
return userInfo?.value?.isSetBank ? "/withdraw" : "/Setbank";
|
||||
});
|
||||
|
||||
</script>
|
||||
|
@ -15,7 +15,7 @@ const userStore = useUserStore();
|
||||
const { userInfo } = storeToRefs(userStore);
|
||||
|
||||
const formData = reactive({
|
||||
fullname: userInfo.value?.fullname,
|
||||
fullname: userInfo?.value?.fullname,
|
||||
});
|
||||
|
||||
const showPassword = ref(false);
|
||||
|
Loading…
x
Reference in New Issue
Block a user