diff --git a/dict/Dict.js b/dict/Dict.js index f0b1e27..4351db2 100644 --- a/dict/Dict.js +++ b/dict/Dict.js @@ -180,7 +180,7 @@ function getRequest(options,apiurl) { return request({ url: apiurl, method: 'post', - data: {dict_code:Array.isArray(dictType)?dictType:[dictType]} + data: {dict_code:Array.isArray(options)?dictType:[options]} }) }else{ return getDicts(options); diff --git a/index.js b/index.js index 75debce..f5867ce 100644 --- a/index.js +++ b/index.js @@ -50,9 +50,9 @@ const install = function (Vue) { labelField: 'dictLabel', valueField: 'dictValue', //这个函数用来请求数据字典的数据,调用 getDicts() 函数,并使用传入的 dictMeta.type 来获取相应类型的数据字典 - request(dictMeta) { - return getDicts(dictMeta.type).then(res => res.datas) - }, + // request(dictMeta) { + // return getDicts(dictMeta.type).then(res => res.datas) + // }, }, }, }) diff --git a/package.json b/package.json index d50d463..ac78eb9 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "erp-element-ui", - "version": "1.0.38", + "version": "1.0.39", "description": "", "main": "index.js", "scripts": {