Merge pull request #11313 from dataease/pr@dev-v2_st

fix(xpack): vue变量冲突
This commit is contained in:
dataeaseShu 2024-08-01 11:59:20 +08:00 committed by GitHub
commit 2082e0febd
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -117,12 +117,12 @@ onMounted(async () => {
plugin.value = xpack.default
} else if (!window._de_xpack_not_loaded) {
window._de_xpack_not_loaded = true
window['Vue'] = Vue
window['Axios'] = axios
window['Pinia'] = Pinia
window['vueRouter'] = router
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
if (!window.tinymce) {
window.tinymce = tinymce
}