From e0d2d96c72772769cd5120034a7b587db228e8c2 Mon Sep 17 00:00:00 2001 From: dataeaseShu Date: Wed, 20 Nov 2024 16:00:32 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E5=B5=8C=E5=85=A5=E5=BC=8F):=20=E6=8F=92?= =?UTF-8?q?=E4=BB=B6=E6=97=A0=E6=B3=95=E6=AD=A3=E5=B8=B8=E5=8A=A0=E8=BD=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/components/plugin/src/PluginComponent.vue | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/core/core-frontend/src/components/plugin/src/PluginComponent.vue b/core/core-frontend/src/components/plugin/src/PluginComponent.vue index 7ae6c0382b..278f55d9f4 100644 --- a/core/core-frontend/src/components/plugin/src/PluginComponent.vue +++ b/core/core-frontend/src/components/plugin/src/PluginComponent.vue @@ -8,7 +8,7 @@ import { i18n } from '@/plugins/vue-i18n' import * as Vue from 'vue' import axios from 'axios' import * as Pinia from 'pinia' -import * as vueRouter from 'vue-router' +import router from '@/router' import { useEmitt } from '@/hooks/web/useEmitt' import request from '@/config/axios' const { wsCache } = useCache() @@ -122,12 +122,12 @@ onMounted(async () => { const xpack = await window[moduleName].mapping[attrs.jsname] plugin.value = xpack.default } else { - window['Vue'] = Vue - window['Axios'] = axios - window['Pinia'] = Pinia - window['vueRouter'] = vueRouter - window['MittAll'] = useEmitt().emitter.all - window['I18n'] = i18n + window['VueDe'] = Vue + window['AxiosDe'] = axios + window['PiniaDe'] = Pinia + window['vueRouterDe'] = router + window['MittAllDe'] = useEmitt().emitter.all + window['I18nDe'] = i18n const url = `/xpackComponent/pluginStaticInfo/${moduleName}` request.get({ url }).then(async res => { new Function(res.data || res)()