2 Commits 85bed2bea5 ... 36ea7f20f3

Auteur SHA1 Message Date
  lisiyan 36ea7f20f3 fix:三轮测试bug修复 il y a 6 mois
  lisiyan 85bed2bea5 fix:三轮测试bug修复 il y a 6 mois
1 fichiers modifiés avec 5 ajouts et 1 suppressions
  1. 5 1
      src/views/SamlSetting.vue

+ 5 - 1
src/views/SamlSetting.vue

@@ -900,7 +900,11 @@ const openSelectDialog = () => {
                   Add Domain
                 </div>
                 <span class="text-[#D9D9D9]">丨</span>
-                <div v-if="Number(scope.row.sync?.status) === 1 || Number(scope.row.sync?.status) === 2" class="h-20px rounded-4px text-center text-14px leading-20px text-[#1460F3] cursor-pointer hover:text-[#0C3A92]"
+                <div v-if="!scope.row.domains.length" class="h-20px rounded-4px text-center text-14px leading-20px text-[#1460F3] cursor-pointer hover:text-[#0C3A92]"
+                  @click="openSync(scope.row.domains.length), directoryId = scope.row.directoryId, formData.appId = scope.row.applicationId, formData.directoryId = scope.row.tenantId, formData.secret = scope.row.clientSecrets, isCreate = true">
+                  Add Sync
+                </div>
+                <div v-else-if="Number(scope.row.sync?.status) === 1 || Number(scope.row.sync?.status) === 2" class="h-20px rounded-4px text-center text-14px leading-20px text-[#1460F3] cursor-pointer hover:text-[#0C3A92]"
                   @click="setFrequency = true, directoryId = scope.row.directoryId, daySync(scope.row.scheduleSetting)">
                   Synchronize
                 </div>