From b5efdb89b096906a9cf20e04610bda7f460cbb0f Mon Sep 17 00:00:00 2001 From: Liuyi <candymxq888@outlook.com> Date: 星期六, 12 十月 2024 15:43:47 +0800 Subject: [PATCH] 添加充值记录页面,完善首页用户会员卡绑定信息,添加用户水卡注销及删除 --- components/navbar/navbar.vue | 9 +++++++-- 1 files changed, 7 insertions(+), 2 deletions(-) diff --git a/components/navbar/navbar.vue b/components/navbar/navbar.vue index de430d4..26a5679 100644 --- a/components/navbar/navbar.vue +++ b/components/navbar/navbar.vue @@ -6,7 +6,7 @@ </template> <script setup> - import { ref } from 'vue' + import { onMounted, ref ,watch} from 'vue' function navBackTo(){ uni.navigateBack() } @@ -16,7 +16,12 @@ default:'' } }) - const title = ref(props.title) + const pageTitle = ref(props.title) + watch(props.title,(New, Old)=>{ + pageTitle.value = New + }, + {immediate: true}, + ) </script> <style lang="scss"> -- Gitblit v1.9.3