mirror of
https://github.com/dataease/dataease.git
synced 2026-05-15 05:22:13 +08:00
fix: 飞书关闭状态,数据源不可用
This commit is contained in:
@@ -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();
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user