htui-yllkbz 1.3.52 → 1.3.54

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Binary file
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "htui-yllkbz",
3
- "version": "1.3.52",
3
+ "version": "1.3.54",
4
4
  "port": "8082",
5
5
  "typings": "types/index.d.ts",
6
6
  "main": "lib/htui.common.js",
@@ -874,11 +874,17 @@ export default class CommonDatas extends Vue {
874
874
  cur.childrenList = [];
875
875
  if (cur.users) {
876
876
  cur.users.map((item) => {
877
- item.name = item.surname
878
- ? `${item.surname}${item.name}`
879
- : item.userName;
877
+ if (item.userName) {
878
+ item.name = item.userName;
879
+ } else {
880
+ if (item.displayName) {
881
+ item.name = item.displayName;
882
+ } else {
883
+ item.name = `${item.surname || ''}${item.name || ''}`;
884
+ }
885
+ }
886
+ item.displayName = item.name;
880
887
  item.childrenList = undefined;
881
-
882
888
  return item;
883
889
  });
884
890
  }