add new session button

This commit is contained in:
Timi
2026-09-22 15:40:21 +08:00
parent d5495a31d9
commit ac4d65808a
2 changed files with 23 additions and 17 deletions
+6 -5
View File
@@ -15,6 +15,7 @@
@send="submitMessage"
@stop="stopGeneration"
@retry="retryLastMessage"
@new-conversation="emit('new-conversation')"
>
<template #welcome>
<div class="welcome">
@@ -25,10 +26,9 @@
<p v-entrance-transition="140">我会根据当前门店的实时业务数据回答经营问题。</p>
<div class="quick-list" v-entrance-transition="210">
<t-button
class="quick-question bg-white"
v-for="question in aiQuickQuestionList"
:key="question"
class="quick-question"
variant="outline"
size="small"
@click="submitMessage(question)"
>
@@ -104,6 +104,9 @@ interface Props {
}
const props = defineProps<Props>();
const emit = defineEmits<{
"new-conversation": [];
}>();
const userStore = useUserStore();
const navBarStore = useNavBarStore();
type MessageListExpose = {
@@ -339,9 +342,7 @@ onUnmounted(() => navBarStore.clearRight());
<style scoped lang="less">
.shared-panel {
:deep(.ai-chat-panel) {
padding-top: var(--app-nav-height);
}
padding-top: var(--app-nav-height);
:deep(.welcome) {
margin: auto 0;