Merge pull request #13639 from dataease/pr@dev-v2_dzz

fix(xpack): xpack UI库国际化不生效
This commit is contained in:
xuwei-fit2cloud 2024-11-28 14:46:59 +08:00 committed by GitHub
commit 8918516508
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -3,6 +3,7 @@ import noLic from './nolic.vue'
import { ref, useAttrs, onMounted } from 'vue' import { ref, useAttrs, onMounted } from 'vue'
import { execute, randomKey, formatArray } from './convert' import { execute, randomKey, formatArray } from './convert'
import { load, loadDistributed, xpackModelApi } from '@/api/plugin' import { load, loadDistributed, xpackModelApi } from '@/api/plugin'
import configGlobal from '@/components/config-global/src/ConfigGlobal.vue'
import { useCache } from '@/hooks/web/useCache' import { useCache } from '@/hooks/web/useCache'
import { i18n } from '@/plugins/vue-i18n' import { i18n } from '@/plugins/vue-i18n'
import * as Vue from 'vue' import * as Vue from 'vue'
@ -152,6 +153,7 @@ onMounted(async () => {
</script> </script>
<template> <template>
<configGlobal>
<component <component
:key="attrs.jsname" :key="attrs.jsname"
ref="pluginProxy" ref="pluginProxy"
@ -159,6 +161,5 @@ onMounted(async () => {
v-loading="loading" v-loading="loading"
v-bind="attrs" v-bind="attrs"
></component> ></component>
</configGlobal>
</template> </template>
<style lang="less" scoped></style>