vue2-client 1.8.358 → 1.8.360

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": "vue2-client",
3
- "version": "1.8.358",
3
+ "version": "1.8.360",
4
4
  "private": false,
5
5
  "scripts": {
6
6
  "serve": "SET NODE_OPTIONS=--openssl-legacy-provider && vue-cli-service serve --no-eslint",
@@ -423,7 +423,7 @@ export default {
423
423
  this.serviceName = serviceName
424
424
  this.viewMode = viewMode
425
425
  this.env = env
426
- this.rowKey = this.tableColumns[0].dataIndex
426
+ this.rowKey = this.getPrimaryKeyName()
427
427
  let totalWidth = 0
428
428
  for (let i = 0; i < this.tableColumns.length; i++) {
429
429
  const item = this.tableColumns[i]
@@ -579,7 +579,8 @@ export default {
579
579
  return primaryKeyData[0].model
580
580
  }
581
581
  }
582
- return this.tableColumns[0].filter(i => i?.slotType !== 'index').dataIndex
582
+ const realColumns = this.tableColumns.filter(i => i?.slotType !== 'index')
583
+ return realColumns[0].dataIndex
583
584
  },
584
585
  // 导出选中或本页数据
585
586
  handleExport (isSelected) {