From db839887cf606a8e49248baabc4725e4efc2dcc6 Mon Sep 17 00:00:00 2001 From: wangdan-fit2cloud Date: Tue, 30 Jul 2024 17:24:31 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=B8=93=E4=B8=9A=E7=89=88=E8=BF=87?= =?UTF-8?q?=E6=9C=9F=E5=8E=86=E5=8F=B2=E8=AE=B0=E5=BD=95=E6=98=BE=E7=A4=BA?= =?UTF-8?q?=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ui/src/views/chat/embed/index.vue | 2 +- ui/src/views/chat/pc/index.vue | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/ui/src/views/chat/embed/index.vue b/ui/src/views/chat/embed/index.vue index 5995e6f73..9e2c4ac1e 100644 --- a/ui/src/views/chat/embed/index.vue +++ b/ui/src/views/chat/embed/index.vue @@ -187,7 +187,7 @@ function getAppProfile() { .asyncGetAppProfile(loading) .then((res: any) => { applicationDetail.value = res.data - if (res.data?.show_history) { + if (res.data?.show_history || !user.isEnterprise()) { getChatLog(applicationDetail.value.id) } }) diff --git a/ui/src/views/chat/pc/index.vue b/ui/src/views/chat/pc/index.vue index 2914974c2..3ed0c7a30 100644 --- a/ui/src/views/chat/pc/index.vue +++ b/ui/src/views/chat/pc/index.vue @@ -225,7 +225,7 @@ function getAppProfile() { .asyncGetAppProfile(loading) .then((res: any) => { applicationDetail.value = res.data - if (res.data?.show_history) { + if (res.data?.show_history || !user.isEnterprise()) { getChatLog(applicationDetail.value.id) } })