zzw
2023-11-17 2f6d2c44cead9ab98df7119250ed922b8c849c67
编号
2个文件已修改
5 ■■■■■ 已修改文件
web/src/views/layout/main.vue 1 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
zt/core/src/main/java/com/zt/modules/sys/controller/SysDictTypeController.java 4 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
web/src/views/layout/main.vue
@@ -92,6 +92,7 @@
        if (res.data != null) {
          this.$store.state.word = res.data
        }
        console.log(this.$store.state.word,'this.$store.state.word')
      },
      goSingleSign() {
        let username = this.$route.query.username
zt/core/src/main/java/com/zt/modules/sys/controller/SysDictTypeController.java
@@ -153,7 +153,7 @@
     */
    @GetMapping("getDictMap")
    @ApiOperation("字典Map")
    public Map<String, String> getDictMap(@RequestParam String dictType) {
    public Result<Map<String, String>> getDictMap(@RequestParam String dictType) {
        List<DictDto> userDicts = sysDictTypeService.getUserDicts();
        DictDto dict = userDicts.stream()
@@ -163,6 +163,6 @@
        for (DictItemDto dictItemDto : ((DictLeafDto) dict).getDataList()) {
            keywordMap.put(dictItemDto.getDictLabel(), dictItemDto.getRemark());
        }
        return keywordMap;
        return Result.ok(keywordMap);
    }
}