From 9538b97dfebf0ca1eb0e305aad07a39b2b4203ae Mon Sep 17 00:00:00 2001 From: ln1778 <465410291@qq.com> Date: Thu, 20 Jun 2024 16:58:11 +0800 Subject: [PATCH] 22 --- index.js | 4 +++- package.json | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) 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": {