n20-common-lib 2.18.2 → 2.18.4

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,6 +1,6 @@
1
1
  {
2
2
  "name": "n20-common-lib",
3
- "version": "2.18.2",
3
+ "version": "2.18.4",
4
4
  "private": false,
5
5
  "scripts": {
6
6
  "serve": "vue-cli-service serve",
@@ -95,7 +95,7 @@ export default {
95
95
  }
96
96
  },
97
97
  mounted() {
98
- getJsonc('/server-config.jsonc').then(({ approvalMode }) => {
98
+ getJsonc('portal/server-config.jsonc').then(({ approvalMode }) => {
99
99
  this.approvalMode = approvalMode
100
100
  })
101
101
  }
@@ -364,7 +364,7 @@ export default {
364
364
 
365
365
  // 如果没有设置宽度,根据字符数计算最小宽度
366
366
  if (!column.width && !column.minWidth) {
367
- const textLength = column.label.length
367
+ const textLength = (column.label && column.label.length) || 10
368
368
  column.minWidth = Math.ceil(textLength * CHAR_WIDTH + PADDING)
369
369
  }
370
370