adminforth 1.7.0-next.3 → 1.7.0-next.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.
@@ -197,7 +197,11 @@ async function getList() {
197
197
  return {error: data.error};
198
198
  }
199
199
  rows.value = data.data?.map(row => {
200
- row._primaryKeyValue = row[coreStore.resource.columns.find(c => c.primaryKey).name];
200
+ if (coreStore.resource.columns.find(c => c.primaryKey).foreignResource) {
201
+ row._primaryKeyValue = row[coreStore.resource.columns.find(c => c.primaryKey).name].pk;
202
+ } else {
203
+ row._primaryKeyValue = row[coreStore.resource.columns.find(c => c.primaryKey).name];
204
+ }
201
205
  return row;
202
206
  });
203
207
  totalRows.value = data.total;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "adminforth",
3
- "version": "1.7.0-next.3",
3
+ "version": "1.7.0-next.4",
4
4
  "description": "OpenSource Vue3 powered forth-generation admin panel",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.js",