Commit c01eeb85 authored by abbfun's avatar abbfun Committed by Gitee

update ruoyi-admin/src/main/java/com/ruoyi/web/controller/system/SysDictDataController.java.

parent f90899d7
......@@ -73,7 +73,10 @@ public class SysDictDataController extends BaseController
@GetMapping(value = "/type/{dictType}")
public AjaxResult dictType(@PathVariable String dictType)
{
return AjaxResult.success(dictTypeService.selectDictDataByType(dictType));
List<SysDictData> data = dictTypeService.selectDictDataByType(dictType);
if (data == null)
data = new ArrayList<>();
return AjaxResult.success(data);
}
/**
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment