chatDetail.vue 505 B

123456789101112131415161718192021222324252627282930
  1. <template>
  2. <view class="container">
  3. 消息详情
  4. </view>
  5. </template>
  6. <script setup>
  7. import { ref } from 'vue'
  8. import { onLoad } from '@dcloudio/uni-app'
  9. const chatId = ref()
  10. const chatTitle = ref('')
  11. onLoad((load) => {
  12. chatId.value = load.id
  13. chatTitle.value = load.title
  14. uni.setNavigationBarTitle({
  15. title: chatTitle.value
  16. })
  17. })
  18. </script>
  19. <style lang="scss" scoped>
  20. .container {
  21. height: 100vh;
  22. width: 100vw;
  23. background-color: $uni-bg-color;
  24. padding: 0 20rpx;
  25. }
  26. </style>