fix: application button question

This commit is contained in:
wangdan-fit2cloud 2024-12-30 11:17:12 +08:00
parent dc424b3720
commit c5b56dec38

View File

@ -71,11 +71,18 @@
</el-button> </el-button>
</div> </div>
<div> <div>
<el-button :disabled="!accessToken?.is_active" type="primary"> <el-button
<a v-if="accessToken?.is_active" :href="shareUrl" target="_blank"> v-if="accessToken?.is_active"
{{ $t('views.applicationOverview.appInfo.demo') }} :disabled="!accessToken?.is_active"
</a> type="primary"
<span v-else> {{ $t('views.applicationOverview.appInfo.demo') }}</span> tag="a"
:href="shareUrl"
target="_blank"
>
{{ $t('views.applicationOverview.appInfo.demo') }}
</el-button>
<el-button v-else :disabled="!accessToken?.is_active" type="primary">
{{ $t('views.applicationOverview.appInfo.demo') }}
</el-button> </el-button>
<el-button :disabled="!accessToken?.is_active" @click="openDialog"> <el-button :disabled="!accessToken?.is_active" @click="openDialog">
{{ $t('views.applicationOverview.appInfo.embedThirdParty') }} {{ $t('views.applicationOverview.appInfo.embedThirdParty') }}
@ -353,23 +360,22 @@ function getDetail() {
?.filter((v: any) => v.id === 'base-node') ?.filter((v: any) => v.id === 'base-node')
.map((v: any) => { .map((v: any) => {
apiInputParams.value = v.properties.api_input_field_list apiInputParams.value = v.properties.api_input_field_list
? v.properties.api_input_field_list ? v.properties.api_input_field_list.map((v: any) => {
.map((v: any) => { return {
return { name: v.variable,
name: v.variable, value: v.default_value
value: v.default_value }
} })
})
: v.properties.input_field_list : v.properties.input_field_list
? v.properties.input_field_list ? v.properties.input_field_list
.filter((v: any) => v.assignment_method === 'api_input') .filter((v: any) => v.assignment_method === 'api_input')
.map((v: any) => { .map((v: any) => {
return { return {
name: v.variable, name: v.variable,
value: v.default_value value: v.default_value
} }
}) })
: [] : []
}) })
}) })
} }