Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions src/views/nocode/mf-api/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@
.then((res) => {
const columns: BasicColumn[] = Object.values(res.headers)
.sort((a: any, b: any) => a.index - b.index)
.map((value) => ({
.map((value: any) => ({
title: value.colName,
dataIndex: value.colName
}));
Expand Down Expand Up @@ -321,7 +321,6 @@
const setStore = (mfApi: MfApi) => {
apiStore.setSourceId(mfApi.sourceId || "");
apiStore.setSourceType(mfApi.sourceType || 0);
apiStore.setTableName(query.tableName as string);
setTitle(mfApi.name || (query.tableName as string));
};
//如果存在配置id说明是修改
Expand Down Expand Up @@ -423,6 +422,8 @@
}
await setJoinFields(query.joins, params);
await apiStore.setTableFields(apiStore.getSourceId, query.sourceTable, params);
//通过tableName监听字段初始化,不要变更位置
apiStore.setTableName(query.sourceTable);
}

function configChange(data: SqlQuery, levelChange: boolean) {
Expand Down