liudong
2024-08-17 f848280fe3ed8841147fcc8f26a788580b82ae0c
src/views/sessionManager/index.vue
@@ -8,7 +8,7 @@
    <!--    <a-card class="top-title">AI会话记录</a-card>-->
    <a-row :gutter="[5, 5]" style="margin-top: 3px;">
      <a-col :span="1">
        <chatMenu></chatMenu>
        <chatMenu @createSession="createSession" @querySessionDetail="querySessionDetail" @changeAgentType="changeAgentType"></chatMenu>
      </a-col>
      <!--      智能体会话-->
      <a-col :span="23" v-show="agentType == '1'">
@@ -141,7 +141,7 @@
      </a-col>
      <a-col :span="23" v-show="agentType == '4'">
        <div class="center" style="padding: 0">
          <smartAi @createSession="createSession" @createAgent="createAgent" @querySessionDetail="querySessionDetail" @changeAgentType="changeAgentType"></smartAi>
          <smartAi @createSession="createSession" @querySessionDetail="querySessionDetail" @changeAgentType="changeAgentType"></smartAi>
        </div>
      </a-col>
    </a-row>
@@ -249,7 +249,7 @@
    dialog_id: id,
    conversation_desc: "未命名会话"
  });
  console.log(res, "res");
  // console.log(res, "res");
  if (res.code == 200) {
    // console.log(res.data.conversation_id);
    activeSessionId.value = res.data?.conversation_id;
@@ -356,6 +356,7 @@
              console.info("done");
              displayedText.value = "";
              queryNewSessionDetail(activeSessionId.value);
              EventBus.emit('queryAppUsageList');
              break;
            }
          }
@@ -377,6 +378,7 @@
  activeSessionId.value = id;
  const { code, data } = await getSessionDetailsApi(id);
  if (code === 200) {
    console.log(data, "新建会话详情");
    sessionDetailList.value = data.message;
    agentTitle.value = data.name;
    refreshScroll(); //刷新滚动条位置
@@ -755,6 +757,10 @@
    transition: all var(--animation-duration) var(--animation-transition);
    display: flex;
    align-items: flex-end;
    overflow: hidden;        /* 隐藏超出的内容 */
    text-overflow: ellipsis; /* 使用省略号来代替被隐藏的文字 */
    white-space: nowrap;     /* 不换行,使内容在一行内显示 */
    max-width: 200px;
  }
}
</style>