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">