diff --git a/frontend/src/views/chat/ChatListContainer.vue b/frontend/src/views/chat/ChatListContainer.vue index a849a054..760d902f 100644 --- a/frontend/src/views/chat/ChatListContainer.vue +++ b/frontend/src/views/chat/ChatListContainer.vue @@ -19,6 +19,7 @@ const props = withDefaults( currentChatId?: number currentChat?: ChatInfo loading?: boolean + appName?: string }>(), { chatList: () => [], @@ -26,6 +27,7 @@ const props = withDefaults( currentChat: () => new ChatInfo(), loading: false, inPopover: false, + appName: '', } ) @@ -214,7 +216,7 @@ function onChatRenamed(chat: Chat) {
-
{{ t('qa.title') }}
+
{{ appName || t('qa.title') }}
diff --git a/frontend/src/views/chat/index.vue b/frontend/src/views/chat/index.vue index 60accc1c..28d51e81 100644 --- a/frontend/src/views/chat/index.vue +++ b/frontend/src/views/chat/index.vue @@ -17,6 +17,7 @@ v-model:current-chat="currentChat" v-model:loading="loading" :in-popover="!chatListSideBarShow" + :appName="customName" @go-empty="goEmpty" @on-chat-created="onChatCreated" @on-click-history="onClickHistory" @@ -36,6 +37,7 @@ v-model:current-chat="currentChat" v-model:loading="loading" :in-popover="!chatListSideBarShow" + :appName="customName" @go-empty="goEmpty" @on-chat-created="onChatCreated" @on-click-history="onClickHistory" @@ -70,6 +72,7 @@ v-model:current-chat="currentChat" v-model:loading="loading" :in-popover="!chatListSideBarShow" + :appName="customName" @go-empty="goEmpty" @on-chat-created="onChatCreated" @on-click-history="onClickHistory" @@ -94,6 +97,7 @@ v-model:current-chat-id="currentChatId" v-model:current-chat="currentChat" v-model:loading="loading" + :appName="customName" :in-popover="false" @go-empty="goEmpty" @on-chat-created="onChatCreated" @@ -424,6 +428,7 @@ const props = defineProps<{ welcomeDesc?: string logoAssistant?: string welcome?: string + appName?: string pageEmbedded?: boolean }>() const floatPopoverRef = ref() @@ -437,7 +442,10 @@ const defaultFloatPopoverStyle = ref({ }) const isCompletePage = computed(() => !assistantStore.getAssistant || assistantStore.getEmbedded) - +const customName = computed(() => { + if (props.pageEmbedded) return props.appName + return '' +}) const { t } = useI18n() const inputMessage = ref('') diff --git a/frontend/src/views/dashboard/editor/Toolbar.vue b/frontend/src/views/dashboard/editor/Toolbar.vue index 74830acd..77db916a 100644 --- a/frontend/src/views/dashboard/editor/Toolbar.vue +++ b/frontend/src/views/dashboard/editor/Toolbar.vue @@ -337,7 +337,6 @@ const previewInner = () => { } .back-icon { - margin-top: 8px; width: 20px; height: 20px; } diff --git a/frontend/src/views/embedded/index.vue b/frontend/src/views/embedded/index.vue index 928ea3f5..d50c98d0 100644 --- a/frontend/src/views/embedded/index.vue +++ b/frontend/src/views/embedded/index.vue @@ -25,6 +25,7 @@ :welcome="customSet.welcome" :welcome-desc="customSet.welcome_desc" :logo-assistant="logo" + :app-name="appName" />