-
-
+
![]()
+
@@ -610,7 +606,7 @@ onMounted(() => {
if (quickInputRef.value) {
quickInputRef.value.textarea.style.height = '0'
}
- }, 1500)
+ }, 1800)
})
defineExpose({
diff --git a/ui/src/components/layout-container/index.vue b/ui/src/components/layout-container/index.vue
index 4d830242c..ec5d8c3b2 100644
--- a/ui/src/components/layout-container/index.vue
+++ b/ui/src/components/layout-container/index.vue
@@ -42,7 +42,7 @@ const showBack = computed(() => {
.content-container__main {
background-color: var(--app-view-bg-color);
box-sizing: border-box;
- min-width: 700px;
+ min-width: 847px;
}
}
diff --git a/ui/src/layout/components/top-bar/avatar/AboutDialog.vue b/ui/src/layout/components/top-bar/avatar/AboutDialog.vue
index e92eaa928..91badd322 100644
--- a/ui/src/layout/components/top-bar/avatar/AboutDialog.vue
+++ b/ui/src/layout/components/top-bar/avatar/AboutDialog.vue
@@ -26,11 +26,10 @@
>
- 版本{{ user.isXPack ? '专业版' : '社区版' }}
+ 版本{{ user.showXpack() ? '专业版' : '社区版' }}
- 版本号{{ licenseInfo?.licenseVersion || user.version }}
+ 版本号{{ user.version }}
序列号{{ licenseInfo?.serialNo || '-' }}
@@ -38,11 +37,7 @@
备注{{ licenseInfo?.remark || '-' }}
-
-
+
+
diff --git a/ui/src/views/application-overview/component/LimitDialog.vue b/ui/src/views/application-overview/component/LimitDialog.vue
index 6bdffd2fd..2bb9ba501 100644
--- a/ui/src/views/application-overview/component/LimitDialog.vue
+++ b/ui/src/views/application-overview/component/LimitDialog.vue
@@ -4,12 +4,12 @@
v-model="dialogVisible"
>
-
-
+ -->
@@ -69,7 +69,6 @@ const emit = defineEmits(['refresh'])
const limitFormRef = ref()
const form = ref({
- show_source: false,
access_num: 0,
white_active: true,
white_list: ''
@@ -81,7 +80,6 @@ const loading = ref(false)
watch(dialogVisible, (bool) => {
if (!bool) {
form.value = {
- show_source: false,
access_num: 0,
white_active: true,
white_list: ''
@@ -90,7 +88,6 @@ watch(dialogVisible, (bool) => {
})
const open = (data: any) => {
- form.value.show_source = data.show_source
form.value.access_num = data.access_num
form.value.white_active = data.white_active
form.value.white_list = data.white_list?.length ? data.white_list?.join('\n') : ''
@@ -102,7 +99,6 @@ const submit = async (formEl: FormInstance | undefined) => {
await formEl.validate((valid, fields) => {
if (valid) {
const obj = {
- show_source: form.value.show_source,
white_list: form.value.white_list ? form.value.white_list.split('\n') : [],
white_active: form.value.white_active,
access_num: form.value.access_num
diff --git a/ui/src/views/application-overview/index.vue b/ui/src/views/application-overview/index.vue
index 9831832c4..ae4724efb 100644
--- a/ui/src/views/application-overview/index.vue
+++ b/ui/src/views/application-overview/index.vue
@@ -2,7 +2,9 @@
-
{{$t('views.applicationOverview.appInfo.header')}}
+
+ {{ $t('views.applicationOverview.appInfo.header') }}
+
-
{{$t('views.applicationOverview.appInfo.publicAccessLink')}}
+
{{
+ $t('views.applicationOverview.appInfo.publicAccessLink')
+ }}
- {{$t('views.applicationOverview.appInfo.demo')}}
- {{$t('views.applicationOverview.appInfo.demo')}}
+
+ {{ $t('views.applicationOverview.appInfo.demo') }}
+
+ {{ $t('views.applicationOverview.appInfo.demo') }}
- {{$t('views.applicationOverview.appInfo.embedThirdParty')}}
+ {{ $t('views.applicationOverview.appInfo.embedThirdParty') }}
+
+
+ {{ $t('views.applicationOverview.appInfo.accessRestrictions') }}
+
+
+ {{ $t('views.applicationOverview.appInfo.displaySetting') }}
-
{{$t('views.applicationOverview.appInfo.accessRestrictions')}}
- {{$t('views.applicationOverview.appInfo.apiAccessCredentials')}}
+ {{ $t('views.applicationOverview.appInfo.apiAccessCredentials') }}
+
- {{$t('views.applicationOverview.appInfo.apiKey')}}
+ {{
+ $t('views.applicationOverview.appInfo.apiKey')
+ }}
- {{$t('views.applicationOverview.monitor.monitoringStatistics')}}
+
+ {{ $t('views.applicationOverview.monitor.monitoringStatistics') }}
+
+
diff --git a/ui/src/views/chat/pc/index.vue b/ui/src/views/chat/pc/index.vue
index 50416a4ab..6ccecbb9f 100644
--- a/ui/src/views/chat/pc/index.vue
+++ b/ui/src/views/chat/pc/index.vue
@@ -108,7 +108,6 @@ import { reactive, ref, onMounted, nextTick, computed } from 'vue'
import { useRoute } from 'vue-router'
import { marked } from 'marked'
import { saveAs } from 'file-saver'
-import applicationApi from '@/api/application'
import useStore from '@/stores'
import useResize from '@/layout/hooks/useResize'
@@ -201,11 +200,14 @@ function getAccessToken(token: string) {
}
function getAppProfile() {
- applicationApi
- .getAppProfile(loading)
- .then((res) => {
+ application
+ .asyncGetAppProfile(loading)
+ .then((res: any) => {
applicationDetail.value = res.data
- getChatLog(applicationDetail.value.id)
+ if (res.data?.show_history) {
+ getChatLog(applicationDetail.value.id)
+ }
+
})
.catch(() => {
applicationAvailable.value = false
diff --git a/ui/src/views/login/index.vue b/ui/src/views/login/index.vue
index 115632bfc..e30ea0940 100644
--- a/ui/src/views/login/index.vue
+++ b/ui/src/views/login/index.vue
@@ -138,7 +138,7 @@ onMounted(() => {
user.theme()
}
user.asyncGetProfile().then((res) => {
- if (user.isXPack && user.XPACK_LICENSE_IS_VALID) {
+ if (user.showXpack()) {
loading.value = true
user
.getAuthType()
diff --git a/ui/src/views/theme/index.vue b/ui/src/views/theme/index.vue
index 4d02b448d..f4186bdd5 100644
--- a/ui/src/views/theme/index.vue
+++ b/ui/src/views/theme/index.vue
@@ -134,7 +134,7 @@