generated from template/apps-template
update
This commit is contained in:
@@ -1,8 +1,7 @@
|
||||
import { CreateColumnData } from "@kevisual/noco"
|
||||
export const columns: CreateColumnData[] = [
|
||||
{
|
||||
title: 'Id2',
|
||||
// uidt: "ID",
|
||||
title: 'Id',
|
||||
uidt: "ID",
|
||||
pk: true,
|
||||
pv: true,
|
||||
|
||||
@@ -68,6 +68,9 @@ export class Core {
|
||||
tableId = res?.data?.id;
|
||||
}
|
||||
this.tableId = tableId;
|
||||
if(this.nocoApi.record) {
|
||||
this.nocoApi.record.table = tableId;
|
||||
}
|
||||
return {
|
||||
code,
|
||||
data: {
|
||||
@@ -88,4 +91,7 @@ export class Core {
|
||||
updateItem(data: Partial<CoreItem>) {
|
||||
return this.nocoApi.record.update(data);
|
||||
}
|
||||
creatItem(data: Partial<CoreItem>) {
|
||||
return this.nocoApi.record.create(data);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user