<template>
    <button @click="openChat">OpenChat</button>
  </template>
  <script>
    export default {
      methods: {
        openChat() {
          // 1v1 chat: conversationID = `C2C${userID}`
          // group chat: conversationID = `GROUP${groupID}`
          const conversationID = 'C2Cqwe';
          uni.navigateTo({
            url: `/TUIKit/components/TUIChat/index?conversationID=${conversationID}`
          });
        }
      }
    }
  </script>