From 15a55f79a84e5dab670d54a9dc0c6b9133a18441 Mon Sep 17 00:00:00 2001
From: Liuyi <candymxq888@outlook.com>
Date: 星期一, 21 十月 2024 17:29:37 +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