Bladeren bron

perf(views): 优化“协议配置”步骤

1. 在最后一步操作时隐藏返回上一步的按钮
wangcong 3 weken geleden
bovenliggende
commit
f66c4310c8
2 gewijzigde bestanden met toevoegingen van 3 en 1 verwijderingen
  1. 1 1
      src/layout/UseGuidance.vue
  2. 2 0
      src/views/setup-protocol/SelectConfigMethod.vue

+ 1 - 1
src/layout/UseGuidance.vue

@@ -191,7 +191,7 @@ const finishCurrentStep = async () => {
               {{ $t('common.skip') }}
             </AButton>
             <AButton
-              v-show="!isUsedInModalGuidance || !isFirstStep"
+              v-show="(!isUsedInModalGuidance || !isFirstStep) && !currentStep.prevStepButtonHide"
               :type="isUsedInModalGuidance ? 'default' : 'text'"
               @click="goPrevStep"
             >

+ 2 - 0
src/views/setup-protocol/SelectConfigMethod.vue

@@ -52,6 +52,7 @@ const finish = () => {
         title: t('common.finishSetup'),
         hideHeader: true,
         component: shallowRef(FinishProtocol),
+        prevStepButtonHide: true,
         nextStepButtonText: isUsedInModalGuidance ? t('common.finishSetup') : undefined,
         isLastStep: true,
       },
@@ -74,6 +75,7 @@ const finish = () => {
         title: t('common.finishSetup'),
         hideHeader: true,
         component: shallowRef(FinishProtocol),
+        prevStepButtonHide: true,
         nextStepButtonText: isUsedInModalGuidance ? t('common.finishSetup') : undefined,
         isLastStep: true,
       },