延时器

This commit is contained in:
shijingjing
2022-10-27 16:08:51 +08:00
parent e05ce4d719
commit 9f6203e762

View File

@@ -222,9 +222,11 @@ export default {
.then((res) => { .then((res) => {
if (res.code == 0) { if (res.code == 0) {
this.$u.toast('提交成功') this.$u.toast('提交成功')
uni.navigateBack({ setTimeout(() =>{
delta: 1, uni.navigateBack({
}); delta: 1,
});
}, 500)
} }
}) })
.catch((err) => { .catch((err) => {