Skip to content

Commit

Permalink
refactor: update VUE_APP_CONNECTOR_SCHEMA
Browse files Browse the repository at this point in the history
  • Loading branch information
cn-xufei committed Oct 28, 2024
1 parent 53fcd1b commit 965aad7
Showing 1 changed file with 9 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -928,6 +928,11 @@ export default {
const { OPTIONAL_FIELDS } = connectionProperties
delete connectionProperties.OPTIONAL_FIELDS
let reactions
if (process.env.VUE_APP_CONNECTOR_SCHEMA && /^\s*[[{].*[\]}]\s*$/.test(process.env.VUE_APP_CONNECTOR_SCHEMA)) {
reactions = JSON.parse(process.env.VUE_APP_CONNECTOR_SCHEMA)
}
let result = {
type: 'object',
'x-component-props': {
Expand All @@ -937,7 +942,9 @@ export default {
START: {
type: 'void',
'x-index': 0,
'x-reactions': process.env.VUE_APP_HIDE_CONNECTOR_SCHEMA
'x-reactions': reactions
? reactions
: process.env.VUE_APP_HIDE_CONNECTOR_SCHEMA
? {
target: process.env.VUE_APP_HIDE_CONNECTOR_SCHEMA,
fulfill: {
Expand Down Expand Up @@ -1202,6 +1209,7 @@ export default {
this.schemaScope = {
$isDaas: this.isDaas,
pdkId: this.pdkOptions.pdkId,
isEdit: !!id,
useAsyncDataSource: (service, fieldName = 'dataSource', ...serviceParams) => {
return field => {
Expand Down

0 comments on commit 965aad7

Please sign in to comment.