forked from github/dataease
fix: 获取 API 数据结构不校验jsonpath
This commit is contained in:
parent
5e27e1ae25
commit
c92769ffdb
@ -1884,7 +1884,7 @@ export default {
|
||||
all_compute_mode: 'Direct connection and extraction mode',
|
||||
extra_params: 'Extra JDBC connection string',
|
||||
please_input_dataPath: 'Please enter the JsonPath data path',
|
||||
show_api_data: 'View API raw data',
|
||||
show_api_data: 'View API data structure',
|
||||
warning: 'Contains invalid table',
|
||||
data_table: 'Dataset Table',
|
||||
data_table_name: 'Dataset Table name',
|
||||
|
@ -1878,7 +1878,7 @@ export default {
|
||||
all_compute_mode: '直連、抽取模式',
|
||||
extra_params: '額外的JDBC連接字符串',
|
||||
please_input_dataPath: '請輸入 JsonPath 數據路徑',
|
||||
show_api_data: '查看API原始數據',
|
||||
show_api_data: '查看API数据結構',
|
||||
warning: '包含無效數據表',
|
||||
data_table: '數據表',
|
||||
data_table_name: '數據表名稱',
|
||||
|
@ -1877,7 +1877,7 @@ export default {
|
||||
all_compute_mode: '直连、抽取模式',
|
||||
extra_params: '额外的JDBC连接字符串',
|
||||
please_input_dataPath: '请输入 JsonPath 数据路径',
|
||||
show_api_data: '查看API原始数据',
|
||||
show_api_data: '查看API数据结构',
|
||||
warning: '包含无效数据表',
|
||||
data_table: '数据表',
|
||||
data_table_name: '数据表名称',
|
||||
|
@ -1174,10 +1174,6 @@ export default {
|
||||
}
|
||||
},
|
||||
showApiData(){
|
||||
if (this.apiItem.useJsonPath && !this.apiItem.jsonPath) {
|
||||
this.$message.error(i18n.t('datasource.please_input_dataPath'))
|
||||
return
|
||||
}
|
||||
this.$refs.apiItemBasicInfo.validate((valid) => {
|
||||
if (valid) {
|
||||
const data = Base64.encode(JSON.stringify(this.apiItem))
|
||||
|
Loading…
Reference in New Issue
Block a user