From d64039c298a1eb2a4ce4ea4ba7144e92f19cf400 Mon Sep 17 00:00:00 2001 From: fit2cloud-chenyw Date: Tue, 18 Jun 2024 11:26:38 +0800 Subject: [PATCH] =?UTF-8?q?chore:=20=E5=89=8D=E7=AB=AF=E6=89=93=E5=8C=85?= =?UTF-8?q?=E9=94=99=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- core/core-frontend/config/distributed.ts | 2 +- .../src/components/plugin/src/PluginComponent.vue | 7 ++++++- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/core/core-frontend/config/distributed.ts b/core/core-frontend/config/distributed.ts index 54c51667de..ca1cd87465 100644 --- a/core/core-frontend/config/distributed.ts +++ b/core/core-frontend/config/distributed.ts @@ -14,7 +14,7 @@ export default { ], build: { rollupOptions: { - external: id => /de-xpack/.test(id), + external: id => /de-xpack/.test(id) || /extensions-view-3dpie/.test(id), output: { // 用于命名代码拆分时创建的共享块的输出命名 chunkFileNames: `assets/chunk/[name]-${pkg.version}-${pkg.name}.js`, diff --git a/core/core-frontend/src/components/plugin/src/PluginComponent.vue b/core/core-frontend/src/components/plugin/src/PluginComponent.vue index 5600cba18d..3ab67f71ea 100644 --- a/core/core-frontend/src/components/plugin/src/PluginComponent.vue +++ b/core/core-frontend/src/components/plugin/src/PluginComponent.vue @@ -33,10 +33,15 @@ const generateRamStr = (len: number) => { } const importProxy = (bytesArray: any[]) => { - const promise = import( + /* const promise = import( `../../../../../../../${formatArray(bytesArray[7])}/${formatArray(bytesArray[8])}/${formatArray( bytesArray[9] )}/${formatArray(bytesArray[10])}/${formatArray(bytesArray[11])}.vue` + ) */ + const promise = import( + `../../../../../../../extensions-view-3dpie/${formatArray(bytesArray[8])}/${formatArray( + bytesArray[9] + )}/${formatArray(bytesArray[10])}/${formatArray(bytesArray[11])}.vue` ) promise .then((res: any) => {