diff --git a/bcs-ui/frontend/src/views/cluster-manage/add/import-cluster.vue b/bcs-ui/frontend/src/views/cluster-manage/add/import-cluster.vue index 15718cfc9f..7103d0aa7b 100644 --- a/bcs-ui/frontend/src/views/cluster-manage/add/import-cluster.vue +++ b/bcs-ui/frontend/src/views/cluster-manage/add/import-cluster.vue @@ -170,7 +170,9 @@ theme="primary" class="mr-[5px]" :loading="testLoading" - :disabled="!importClusterInfo.cloudID || !importClusterInfo.provider" + :disabled="importClusterInfo.importType === 'provider' + ? (!importClusterInfo.cloudID || !importClusterInfo.provider) + : !importClusterInfo.yaml" @click="handleTest">{{$t('cluster.create.button.textKubeConfig')}}