|
@@ -2,7 +2,7 @@
|
|
|
import { ref, reactive, nextTick, watch, onMounted, onBeforeUnmount, computed } from 'vue'
|
|
import { ref, reactive, nextTick, watch, onMounted, onBeforeUnmount, computed } from 'vue'
|
|
|
import { useAgui } from './useAgui.js'
|
|
import { useAgui } from './useAgui.js'
|
|
|
|
|
|
|
|
-const { messages, running, error, sessionId, send, newChat } = useAgui()
|
|
|
|
|
|
|
+const { messages, running, error, send, newChat } = useAgui()
|
|
|
|
|
|
|
|
const agents = reactive([
|
|
const agents = reactive([
|
|
|
{ name: 'DemoAgentAGUI', url: '/agent-api/DemoAgentAGUI' },
|
|
{ name: 'DemoAgentAGUI', url: '/agent-api/DemoAgentAGUI' },
|
|
@@ -96,12 +96,6 @@ watch(
|
|
|
<span class="new-chat-icon">+</span> 开启新对话
|
|
<span class="new-chat-icon">+</span> 开启新对话
|
|
|
</button>
|
|
</button>
|
|
|
</div>
|
|
</div>
|
|
|
-
|
|
|
|
|
- <div class="sidebar-footer">
|
|
|
|
|
- <div class="session-tag" :title="sessionId">
|
|
|
|
|
- 会话 ID:{{ sessionId.slice(0, 8) }}
|
|
|
|
|
- </div>
|
|
|
|
|
- </div>
|
|
|
|
|
</aside>
|
|
</aside>
|
|
|
|
|
|
|
|
<!-- 右侧主区 -->
|
|
<!-- 右侧主区 -->
|
|
@@ -328,20 +322,6 @@ watch(
|
|
|
flex-shrink: 0;
|
|
flex-shrink: 0;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
-.sidebar-footer {
|
|
|
|
|
- padding: 14px 16px;
|
|
|
|
|
- border-top: 1px solid #ebebec;
|
|
|
|
|
-}
|
|
|
|
|
-
|
|
|
|
|
-.session-tag {
|
|
|
|
|
- font-size: 11.5px;
|
|
|
|
|
- color: #9ca3af;
|
|
|
|
|
- font-family: ui-monospace, monospace;
|
|
|
|
|
- white-space: nowrap;
|
|
|
|
|
- overflow: hidden;
|
|
|
|
|
- text-overflow: ellipsis;
|
|
|
|
|
-}
|
|
|
|
|
-
|
|
|
|
|
/* ── 右侧主区 ── */
|
|
/* ── 右侧主区 ── */
|
|
|
.main {
|
|
.main {
|
|
|
flex: 1;
|
|
flex: 1;
|