diff --git a/core/core-backend/src/main/java/io/dataease/datasource/server/EngineServer.java b/core/core-backend/src/main/java/io/dataease/datasource/server/EngineServer.java index fc69ee66a4..ce389e74ac 100644 --- a/core/core-backend/src/main/java/io/dataease/datasource/server/EngineServer.java +++ b/core/core-backend/src/main/java/io/dataease/datasource/server/EngineServer.java @@ -86,7 +86,7 @@ public class EngineServer implements EngineApi { } @Override - public boolean surportSetKey() throws Exception { + public boolean supportSetKey() throws Exception { return !getEngine().getType().equalsIgnoreCase("h2"); } } diff --git a/core/core-frontend/src/api/datasource.ts b/core/core-frontend/src/api/datasource.ts index 19aea8842d..a0bb6a677c 100644 --- a/core/core-frontend/src/api/datasource.ts +++ b/core/core-frontend/src/api/datasource.ts @@ -175,4 +175,4 @@ export const listSyncRecord = (page: number, limit: number, dsId: number | strin export const getDeEngine = () => request.get({ url: '/engine/getEngine' }) -export const surportSetKey = () => request.get({ url: '/engine/surportSetKey' }) +export const supportSetKey = () => request.get({ url: '/engine/supportSetKey' }) diff --git a/core/core-frontend/src/views/visualized/data/datasource/form/ApiHttpRequestDraw.vue b/core/core-frontend/src/views/visualized/data/datasource/form/ApiHttpRequestDraw.vue index dcf3590074..93dd4b5ba1 100644 --- a/core/core-frontend/src/views/visualized/data/datasource/form/ApiHttpRequestDraw.vue +++ b/core/core-frontend/src/views/visualized/data/datasource/form/ApiHttpRequestDraw.vue @@ -109,7 +109,7 @@ const columns = shallowRef([]) const valueList = shallowRef([]) const tableData = shallowRef([]) const apiItemBasicInfo = ref() -const isSurportSetKey = ref(false) +const isSupportSetKey = ref(false) const isNumber = (rule, value, callback) => { if (!value) { callback(new Error(t('datasource.please_input_query_timeout'))) @@ -168,10 +168,10 @@ const editItem = ref(false) const copyItem = ref(false) const copyDs = ref(false) provide('api-active-name', activeName) -const initApiItem = (val: ApiItem, from, name, edit, surportSetKey) => { +const initApiItem = (val: ApiItem, from, name, edit, supportSetKey) => { copyItem.value = val.copy copyDs.value = from.copy - isSurportSetKey.value = surportSetKey + isSupportSetKey.value = supportSetKey activeName.value = name editItem.value = edit apiItemList = from.apiConfiguration @@ -819,7 +819,7 @@ defineExpose({ prop="primaryKey" class-name="checkbox-table" :label="t('datasource.set_key')" - v-if="apiItem.type !== 'params' && isSurportSetKey" + v-if="apiItem.type !== 'params' && isSupportSetKey" width="100" >