fix: 飞书关闭状态,数据源不可用

This commit is contained in:
taojinlong
2025-02-26 16:00:41 +08:00
committed by taojinlong
parent 35e818f8b5
commit 88dc109388
2 changed files with 16 additions and 6 deletions

View File

@@ -1323,11 +1323,22 @@ public class DatasourceServer implements DatasourceApi {
}
resObj = method.invoke(null, object);
} catch (Exception e) {
if (e.getCause() != null && e.getCause() instanceof DEException) {
DEException.throwException(e.getCause().getMessage());
}
DEException.throwException(e);
DEException.throwException(msg(e));
}
return resObj;
}
private String msg(Throwable e) {
Throwable exception = e;
while (true) {
if (exception.getCause() == null) {
return exception.getMessage();
}
if (exception instanceof DEException && !(exception.getCause() instanceof DEException)) {
return exception.getMessage();
}
exception = exception.getCause();
}
}
}

View File

@@ -829,6 +829,7 @@ defineExpose({
>
<template #default="scope">
<el-checkbox
style="display: inline-block; max-width: 80px; white-space: nowrap"
:key="scope.row.jsonPath"
v-model="scope.row.checked"
:disabled="apiItem.useJsonPath"
@@ -902,7 +903,6 @@ defineExpose({
</el-select>
</template>
</el-table-column>
<el-table-column
prop="length"
:label="t('datasource.length')"
@@ -923,7 +923,6 @@ defineExpose({
/>
</template>
</el-table-column>
<el-table-column
prop="primaryKey"
class-name="checkbox-table"