From 446659a3967c4773d39b6316a4bee4945b7703fe Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=90=B4=E6=96=87=E5=B3=B0?= Date: Wed, 10 Jun 2026 20:17:36 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E5=89=8D=E7=AB=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/ops_vue_js/src/router/index.js | 2 +- frontend/ops_vue_js/src/views/HomeView.vue | 7 ++++++- .../ops_vue_js/src/views/aichat/AiChatView.vue | 15 ++++++++++++--- 3 files changed, 19 insertions(+), 5 deletions(-) diff --git a/frontend/ops_vue_js/src/router/index.js b/frontend/ops_vue_js/src/router/index.js index 7a2e792..8eec355 100644 --- a/frontend/ops_vue_js/src/router/index.js +++ b/frontend/ops_vue_js/src/router/index.js @@ -159,7 +159,7 @@ const router = createRouter({ { path: 'aichat', name: 'aichat', - component: () => import('@/views/aichat/AiChatView.vue'), + redirect: '/', }, ], }, diff --git a/frontend/ops_vue_js/src/views/HomeView.vue b/frontend/ops_vue_js/src/views/HomeView.vue index d07f034..5d2b722 100644 --- a/frontend/ops_vue_js/src/views/HomeView.vue +++ b/frontend/ops_vue_js/src/views/HomeView.vue @@ -5,6 +5,7 @@ import { useUsersStore } from '@/stores/users' import { usePageTitle } from '@/composables/usePageTitle' import { scheduleApi } from '@/api/schedule' import { purchaseApi } from '@/api/purchase' +import AiChatView from '@/views/aichat/AiChatView.vue' import { ref, computed, onMounted } from 'vue' usePageTitle('appname.home') @@ -183,7 +184,7 @@ onMounted(() => {
- + {

{{ t('home.pending_orders') }}

+ +
+ +
diff --git a/frontend/ops_vue_js/src/views/aichat/AiChatView.vue b/frontend/ops_vue_js/src/views/aichat/AiChatView.vue index 8c0e7cd..bbd2a06 100644 --- a/frontend/ops_vue_js/src/views/aichat/AiChatView.vue +++ b/frontend/ops_vue_js/src/views/aichat/AiChatView.vue @@ -13,11 +13,20 @@ import { usePageTitle } from '@/composables/usePageTitle' import { useToastStore } from '@/stores/toast' import { useUserStore } from '@/stores/user' +const props = defineProps({ + embedded: { + type: Boolean, + default: false, + }, +}) + const { t } = useI18n() const toast = useToastStore() const userStore = useUserStore() -usePageTitle('appname.aichat') +if (!props.embedded) { + usePageTitle('appname.aichat') +} const messages = ref([]) const inputText = ref('') @@ -699,8 +708,8 @@ async function sendMessage() {