diff --git a/index.js b/index.js index b6014f4..80285ba 100644 --- a/index.js +++ b/index.js @@ -39,7 +39,9 @@ const install = function (Vue,options) { if (install.installed) return; install.installed = true; // 遍历并注册全局组件 - + if(options.VUE_APP_BASE_API){ + window.VUE_APP_BASE_API=options.VUE_APP_BASE_API; + } Vue.use(DataDict, { //数据字典元信息 metas: { diff --git a/package.json b/package.json index 240ba8b..71afa58 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "erp-element-ui", - "version": "1.0.48", + "version": "1.0.49", "description": "", "main": "index.js", "scripts": {