Browse Source

创建项目

ZaiZai 10 months ago
parent
commit
a8f7c830da
1 changed files with 9 additions and 2 deletions
  1. 9 2
      src/views/project/info/detail.vue

+ 9 - 2
src/views/project/info/detail.vue

@@ -77,11 +77,18 @@ const saveAndNextStep = async () => {
     console.log(isRes)
 }
 
-//保存数据
+//ref
 const infoRef = ref(null)
+
+//保存数据
 const submitLoading = ref(false)
 const saveDataApi = async () => {
-    console.log('saveDataApi', basicForm.value)
+    if (tabsKey.value === '1') {
+        const isRes = await infoRef.value.isForm()
+        if (!isRes) return false
+        console.log('saveDataApi', basicForm.value)
+        return true
+    }
 }
 
 //关闭抽屉