diff --git a/ui/src/components/app-charts/components/BarCharts.vue b/ui/src/components/app-charts/components/BarCharts.vue index 3e31ee442..1a875c5b8 100644 --- a/ui/src/components/app-charts/components/BarCharts.vue +++ b/ui/src/components/app-charts/components/BarCharts.vue @@ -56,7 +56,8 @@ function initChart() { text: props.option?.title, textStyle: { fontSize: '16px', - }, + color: '#1f2329', + } }, tooltip: { trigger: 'axis', diff --git a/ui/src/components/app-charts/components/LineCharts.vue b/ui/src/components/app-charts/components/LineCharts.vue index c10d8da17..baf05e533 100644 --- a/ui/src/components/app-charts/components/LineCharts.vue +++ b/ui/src/components/app-charts/components/LineCharts.vue @@ -55,6 +55,7 @@ function initChart() { text: props.option?.title, textStyle: { fontSize: '16px', + color: '#1f2329', }, }, tooltip: { diff --git a/ui/src/components/workflow-dropdown-menu/application/index.vue b/ui/src/components/workflow-dropdown-menu/application/index.vue index cfaa05dff..b090a91b5 100644 --- a/ui/src/components/workflow-dropdown-menu/application/index.vue +++ b/ui/src/components/workflow-dropdown-menu/application/index.vue @@ -299,7 +299,6 @@ function folderClickHandle(row: any) { } async function handleClick(val: string) { - console.log(val) if (val === 'tool') { await getToolFolder() getToolList() diff --git a/ui/src/layout/app-main/index.vue b/ui/src/layout/app-main/index.vue index 0caaec147..1598772f2 100644 --- a/ui/src/layout/app-main/index.vue +++ b/ui/src/layout/app-main/index.vue @@ -14,11 +14,8 @@ import { useRoute } from 'vue-router' const route = useRoute() - - const cachedViews: any = ref([]) onBeforeUpdate(() => { - const { name, meta } = route if (name && !cachedViews.value.includes(name)) { cachedViews.value.push(name) diff --git a/ui/src/layout/layout-template/SimpleLayout.vue b/ui/src/layout/layout-template/SimpleLayout.vue index 2f99d11cd..2565a88d3 100644 --- a/ui/src/layout/layout-template/SimpleLayout.vue +++ b/ui/src/layout/layout-template/SimpleLayout.vue @@ -16,10 +16,11 @@ const { } = route as any const isShared = computed(() => { return ( - folderId === 'shared' || - from === 'systemShare' || - from === 'systemManage' || - route.path.includes('resource-management') + (folderId === 'shared' || + from === 'systemShare' || + from === 'systemManage' || + route.path.includes('resource-management')) && + route.fullPath != '/application' ) }) @@ -35,6 +36,7 @@ const isShared = computed(() => { show-icon :closable="false" /> + diff --git a/ui/src/views/application-overview/component/StatisticsCharts.vue b/ui/src/views/application-overview/component/StatisticsCharts.vue index a38d5e97c..f2bd9b306 100644 --- a/ui/src/views/application-overview/component/StatisticsCharts.vue +++ b/ui/src/views/application-overview/component/StatisticsCharts.vue @@ -61,7 +61,18 @@ />
- + + +
+

{{ tokenUsageOption.title }}

+ +
@@ -77,11 +88,16 @@
+
+

{{ topQuestionsOption.title }}

+ +
@@ -215,7 +231,7 @@ const tokenUsageOption = computed(() => { data: getAttrsArray(props.tokenUsage?.slice(0, tokenUsageCount.value), 'token_usage'), }, ], - dataZoom: props.tokenUsage.length > 0, + dataZoom: props.tokenUsage.length > 20, } }) const topQuestionsOption = computed(() => { @@ -230,7 +246,7 @@ const topQuestionsOption = computed(() => { ), }, ], - dataZoom: props.topQuestions.length > 0, + dataZoom: props.topQuestions.length > 20, } })