File tree Expand file tree Collapse file tree 3 files changed +6
-1
lines changed
Expand file tree Collapse file tree 3 files changed +6
-1
lines changed Original file line number Diff line number Diff line change 537537 "data_predict" : " Data Prediction" ,
538538 "ds_is_invalid" : " Datasource is invalid" ,
539539 "error" : " Error" ,
540+ "no_data" : " No Data" ,
540541 "show_error_detail" : " Show error info"
541542 },
542543 "about" : {
Original file line number Diff line number Diff line change 537537 "data_predict" : " 数据预测" ,
538538 "ds_is_invalid" : " 数据源无效" ,
539539 "error" : " 错误" ,
540+ "no_data" : " 暂无数据" ,
540541 "show_error_detail" : " 查看具体信息"
541542 },
542543 "about" : {
Original file line number Diff line number Diff line change @@ -3,6 +3,7 @@ import ChartComponent from '@/views/chat/component/ChartComponent.vue'
33import type { ChatMessage } from ' @/api/chat.ts'
44import { computed , nextTick , ref } from ' vue'
55import type { ChartTypes } from ' @/views/chat/component/BaseChart.ts'
6+ import { useI18n } from ' vue-i18n'
67
78const props = defineProps <{
89 id? : number | string
@@ -11,6 +12,8 @@ const props = defineProps<{
1112 data: Array <{ [key : string ]: any }>
1213}>()
1314
15+ const { t } = useI18n ()
16+
1417const chartObject = computed <{
1518 type: ChartTypes
1619 title: string
@@ -91,7 +94,7 @@ defineExpose({
9194 :series =" series"
9295 :data =" data"
9396 />
94- <el-empty v-else description =" No Data " />
97+ <el-empty v-else : description =" t('chat.no_data') " />
9598 </div >
9699</template >
97100
You can’t perform that action at this time.
0 commit comments