浏览代码

fix(install): include loading state in canProceed

Jacky 2 月之前
父节点
当前提交
205101caff
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      app/src/views/install/components/InstallView.vue

+ 2 - 2
app/src/views/install/components/InstallView.vue

@@ -12,7 +12,7 @@ const installTimeout = ref(false)
 const activeTab = ref('1')
 const step = ref(1)
 const selfCheckStore = useSelfCheckStore()
-const { hasError } = storeToRefs(selfCheckStore)
+const { hasError, loading } = storeToRefs(selfCheckStore)
 
 const router = useRouter()
 
@@ -51,7 +51,7 @@ function handleRestoreSuccess(options: { restoreNginx: boolean, restoreNginxUI:
 }
 
 const canProceed = computed(() => {
-  return !installTimeout.value && !hasError.value
+  return !installTimeout.value && !hasError.value && !loading.value
 })
 
 const steps = computed(() => {