diff --git a/magic-boot-ui/src/scripts/magic-import.js b/magic-boot-ui/src/scripts/magic-import.js index 62f9464..bdcf166 100644 --- a/magic-boot-ui/src/scripts/magic-import.js +++ b/magic-boot-ui/src/scripts/magic-import.js @@ -5,8 +5,9 @@ const libs = { vue, 'element-plus': ElementPlus } + window.___magic__import__ = function(lib, name){ - if(typeof(libs[lib]) == 'function'){ + if(Object.prototype.toString.call(libs[lib]) != '[object Module]' && name == '*'){ return libs[lib] } return (libs[lib] || {})[name]