From 9a139cc25da8396c1b257ccf99eb8d2fedfbc94d Mon Sep 17 00:00:00 2001
From: Liuyi <candymxq888@outlook.com>
Date: 星期三, 23 十月 2024 17:24:35 +0800
Subject: [PATCH] 添加校验,修改头像

---
 pages/infoBreakdown/index.vue |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/pages/infoBreakdown/index.vue b/pages/infoBreakdown/index.vue
index 3209322..5d308e1 100644
--- a/pages/infoBreakdown/index.vue
+++ b/pages/infoBreakdown/index.vue
@@ -85,7 +85,7 @@
 		});
 	}
 	async function submit(){
-		if(formRef.value.validate()){
+		formRef.value.validate().then(async() =>{
 			form.value.url = uploadList.value
 			//去掉数组中空字符串,数组转字符串
 			form.value.url = form.value.url.filter(str => str !== '').join()
@@ -103,11 +103,11 @@
 							describe:'',
 							url:'',
 						}
-						// uni.navigateBack()
+						uni.navigateBack()
 					},1000)
 				}
 			})
-		}
+		})
 	}
 </script>
 <template>

--
Gitblit v1.9.3