From 0e351422efe712c8f636329e6368395a27531d5d Mon Sep 17 00:00:00 2001 From: wwt Date: Wed, 26 Feb 2025 16:20:07 +0800 Subject: [PATCH] update --- src/pages/reservation/index.vue | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/pages/reservation/index.vue b/src/pages/reservation/index.vue index f61f986..c53b10a 100644 --- a/src/pages/reservation/index.vue +++ b/src/pages/reservation/index.vue @@ -144,9 +144,9 @@ const columns = ref([ value: 600 } ]) -let userInfo = JSON.parse(localStorage.getItem('accountInfo')) + const balance = ref('') -balance.value = userInfo ? userInfo.balance : ''; + const onYSConfirm = (value) => { console.log(value) @@ -248,6 +248,8 @@ onMounted(async () => { router.push('/login') return } + let userInfo = JSON.parse(localStorage.getItem('accountInfo')) + balance.value = userInfo ? userInfo.balance : ''; await geYYtUserInfo() })