This commit is contained in:
ln1778 2024-06-20 15:06:31 +08:00
parent e06831af01
commit 5a1dd7ad30
3 changed files with 5 additions and 5 deletions

View File

@ -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);

View File

@ -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)
// },
},
},
})

View File

@ -1,6 +1,6 @@
{
"name": "erp-element-ui",
"version": "1.0.38",
"version": "1.0.39",
"description": "",
"main": "index.js",
"scripts": {