Showing
2 changed files
with
5 additions
and
1 deletions
@@ -51,6 +51,11 @@ const getLeftNav = (guangChoosed) => { | @@ -51,6 +51,11 @@ const getLeftNav = (guangChoosed) => { | ||
51 | result = JSON.parse(result); | 51 | result = JSON.parse(result); |
52 | 52 | ||
53 | if (result.code === 200) { | 53 | if (result.code === 200) { |
54 | + _.forEach(result.data, (item) => { | ||
55 | + _.forEach(Object.keys(item), (k) => { | ||
56 | + item[_.camelCase(k)] = item[k]; // 下划线变量名转换为驼峰 | ||
57 | + }); | ||
58 | + }); | ||
54 | return result.data; | 59 | return result.data; |
55 | } else { | 60 | } else { |
56 | return result; | 61 | return result; |
-
Please register or login to post a comment