Explorar o código

[bug]
修复上传但是未跳转的bug

Neo hai 1 ano
pai
achega
0b365674fd
Modificáronse 1 ficheiros con 2 adicións e 2 borrados
  1. 2 2
      pages/edit/edit.vue

+ 2 - 2
pages/edit/edit.vue

@@ -595,14 +595,14 @@ const dialogConfirm = debounce(async()=>{
 },500)
 const dialogClose = debounce(async()=>{
 	console.log('dialogClose直接调用接口,不打印')
-	const {data:res} = saveDepoly({
+	const {data:res} = await saveDepoly({
 		token: uni.getStorageSync('token'),
 		data: JSON.stringify(editForm.value)
 	})
 	if(res.code===200){
 		console.log('depoly success>>>')				
 	}
-	const res1 =  sendToUser({
+	const res1 = await sendToUser({
 	token: uni.getStorageSync('token'),
 	data: JSON.stringify({id:uni.getStorageSync('userId')})
 	})