fix: userinfo

This commit is contained in:
hiyu 2024-06-15 20:11:26 +07:00
parent facb23cefd
commit e142be965c
2 changed files with 2 additions and 2 deletions

View File

@ -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>

View File

@ -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);