fix(xpack): 国际化报错

This commit is contained in:
dataeaseShu 2024-09-03 15:09:22 +08:00
parent 9033363ce2
commit 2ab47aa21a
2 changed files with 1 additions and 8 deletions

View File

@ -19,15 +19,9 @@ export default {
chunkFileNames: `assets/chunk/[name]-${pkg.version}-${pkg.name}.js`,
assetFileNames: `assets/[ext]/[name]-${pkg.version}-${pkg.name}.[ext]`,
entryFileNames: `js/[name]-${pkg.version}-${pkg.name}.js`,
manualChunks(id: string, { getModuleInfo }) {
manualChunks(id: string) {
if (id.includes('node_modules')) {
return id.toString().split('node_modules/')[1].split('/')[0].toString()
} else if (
id.includes('.vue') &&
['App.vue', 'ConfigGlobal.vue', 'ExportExcel.vue'].every(ele => !id.includes(ele)) &&
getModuleInfo(id).code.length < 10000
) {
return 'vendor'
}
}
}

View File

@ -28,7 +28,6 @@ export const useI18n = (
} => {
const normalFn = {
t: (key: string) => {
console.log('window.de-i18nDe', key, namespace)
return getKey(namespace, key)
}
}