ソースを参照

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

Neo 1 年間 前
コミット
0b365674fd
1 ファイル変更2 行追加2 行削除
  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')})
 	})