mooho-base-admin-plus 2.10.18 → 2.10.19

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.
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "mooho-base-admin-plus",
3
3
  "description": "MOOHO basic framework for admin by Vue3",
4
- "version": "2.10.18",
4
+ "version": "2.10.19",
5
5
  "author": "jinyifan <jinyifan@mooho.com.cn>",
6
6
  "license": "MIT",
7
7
  "private": false,
@@ -72,6 +72,12 @@ export default {
72
72
  },
73
73
  // 获取标签颜色
74
74
  getTagColor(column, data) {
75
+ let color = 'default';
76
+
77
+ if (data == null) {
78
+ return color;
79
+ }
80
+
75
81
  let tagColor = [];
76
82
  if (column.param) {
77
83
  try {
@@ -81,8 +87,6 @@ export default {
81
87
  }
82
88
  }
83
89
 
84
- let color = 'default';
85
-
86
90
  tagColor.forEach(item => {
87
91
  if (
88
92
  item.value.split(',').some(i => {