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) } })