This commit is contained in:
ln1778 2024-06-20 15:09:57 +08:00
parent 5a1dd7ad30
commit 9b17bffbe7
1 changed files with 3 additions and 8 deletions

View File

@ -175,17 +175,12 @@ export default class Dict {
} }
function getRequest(options,apiurl) { function getRequest(options,apiurl) {
if(apiurl&&apiurl!=""){
return request({ return request({
url: apiurl, url: apiurl||"/api/sysdict/get_dict",
method: 'post', method: 'post',
data: {dict_code:Array.isArray(options)?dictType:[options]} data: {dict_code:Array.isArray(options)?dictType:[options]}
}) });
}else{
return getDicts(options);
}
} }