From 7cbda90b02e31447122f1d22c9797b423d7bd9fc Mon Sep 17 00:00:00 2001
From: Liuyi <candymxq888@outlook.com>
Date: 星期三, 16 十月 2024 17:26:06 +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