|
@@ -146,8 +146,21 @@ interface ConversationRow {
|
|
|
<!-- ===== 聊天区 ===== -->
|
|
<!-- ===== 聊天区 ===== -->
|
|
|
<section class="col main-col" aria-label="消息">
|
|
<section class="col main-col" aria-label="消息">
|
|
|
@if (!chat.agentId()) {
|
|
@if (!chat.agentId()) {
|
|
|
- <div class="center-fill">
|
|
|
|
|
- <ui-empty title="选择一个会话" description="从左侧选择数字生命开始对话。" />
|
|
|
|
|
|
|
+ <!--
|
|
|
|
|
+ 🔴 登录后的默认落地态(2026-11-02 用户要求)。
|
|
|
|
|
+ 原来是「选择一个会话 / 从左侧选择数字生命开始对话」的纯空态 ——
|
|
|
|
|
+ 登录后看到一个没有动作的提示,不知道下一步做什么。
|
|
|
|
|
+ 现在是一个只含「新建对话」按钮的引导页:点它弹「选择数字生命」,
|
|
|
|
|
+ 与左栏顶部「新建对话」入口走同一条链路(requestNewSession)。
|
|
|
|
|
+ -->
|
|
|
|
|
+ <div class="no-session landing">
|
|
|
|
|
+ <i class="fa-solid fa-comments" aria-hidden="true"></i>
|
|
|
|
|
+ <h2 class="no-session-title">开始一段新对话</h2>
|
|
|
|
|
+ <p class="no-session-sub">选择一个数字生命,告诉它你想做什么。</p>
|
|
|
|
|
+ <ui-button variant="primary" (click)="requestNewSession()">
|
|
|
|
|
+ <i class="fa-solid fa-plus" aria-hidden="true"></i>
|
|
|
|
|
+ 新建对话
|
|
|
|
|
+ </ui-button>
|
|
|
</div>
|
|
</div>
|
|
|
} @else {
|
|
} @else {
|
|
|
<!--
|
|
<!--
|
|
@@ -1038,6 +1051,13 @@ interface ConversationRow {
|
|
|
place-content: center;
|
|
place-content: center;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
+ /* 登录落地页:整块主区垂直居中(无容器、无顶栏时的默认态) */
|
|
|
|
|
+ .no-session.landing {
|
|
|
|
|
+ flex: 1;
|
|
|
|
|
+ place-content: center;
|
|
|
|
|
+ gap: var(--sp-4);
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
/* 会话行:与容器行缩进错开,一眼看出层级 */
|
|
/* 会话行:与容器行缩进错开,一眼看出层级 */
|
|
|
.session-row {
|
|
.session-row {
|
|
|
display: flex;
|
|
display: flex;
|
|
@@ -2477,8 +2497,13 @@ export class DkChatPage {
|
|
|
// 打开后内容不满一屏 → 自动补历史(懒加载的另一半)
|
|
// 打开后内容不满一屏 → 自动补历史(懒加载的另一半)
|
|
|
void this.fillViewportIfNeeded();
|
|
void this.fillViewportIfNeeded();
|
|
|
} else {
|
|
} else {
|
|
|
- const first = this.conversations()[0];
|
|
|
|
|
- if (first) void this.openConversation(first.id, true);
|
|
|
|
|
|
|
+ /*
|
|
|
|
|
+ * 🔴 无容器时**停在落地页**,不自动进入第一条会话(2026-11-02 用户要求)。
|
|
|
|
|
+ *
|
|
|
|
|
+ * 原来这里会自动打开 `conversations()[0]` 并 replaceUrl 到
|
|
|
|
|
+ * `/chat/{id}` —— 登录后直接跳进某条对话,用户既没选容器也不知道自己
|
|
|
|
|
+ * 被带到了哪。现在落地页只放「新建对话」,进哪条由用户点。
|
|
|
|
|
+ */
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
|
|
|