From 5a1dd7ad30f35df27b4cdcbd01b28b3b84df5eb5 Mon Sep 17 00:00:00 2001 From: ln1778 <465410291@qq.com> Date: Thu, 20 Jun 2024 15:06:31 +0800 Subject: [PATCH] 22 --- dict/Dict.js | 2 +- index.js | 6 +++--- package.json | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) 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": {