From 5c2531930dc7c87d0c39d116c84f87b507394eb9 Mon Sep 17 00:00:00 2001
From: Liuyi <candymxq888@outlook.com>
Date: 星期六, 12 十月 2024 08:57:18 +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