部分页面语言适配
This commit is contained in:
@@ -77,10 +77,12 @@ import { PieChart } from 'echarts/charts';
|
||||
import { LabelLayout } from 'echarts/features';
|
||||
import { useStore } from "vuex";
|
||||
import { CanvasRenderer } from 'echarts/renderers';
|
||||
import { useI18n } from 'vue-i18n'
|
||||
export default defineComponent({
|
||||
components: {
|
||||
},
|
||||
setup() {
|
||||
const {t} = useI18n()
|
||||
const store:any = useStore()
|
||||
let filter:any = reactive({
|
||||
dataList:computed(()=>{
|
||||
@@ -115,7 +117,7 @@ export default defineComponent({
|
||||
let data:any = []
|
||||
rv.names.forEach((item:any,index:number) => {
|
||||
let obj = {
|
||||
name : item,
|
||||
name : t(`admin.${item}`),
|
||||
value:rv.values[index],
|
||||
}
|
||||
data.push(obj)
|
||||
|
||||
Reference in New Issue
Block a user