Merge branch 'master' of http://175.27.226.205:3000/huxuejian/ykt-team-wxapp
This commit is contained in:
commit
09e59a751a
@ -109,7 +109,12 @@ async function submit({ list, score }) {
|
|||||||
})
|
})
|
||||||
if (res && res.success) {
|
if (res && res.success) {
|
||||||
await toast('提交成功');
|
await toast('提交成功');
|
||||||
|
const pages = getCurrentPages();
|
||||||
|
if (pages.length > 1) {
|
||||||
uni.navigateBack();
|
uni.navigateBack();
|
||||||
|
} else {
|
||||||
|
uni.switchTab({ url: '/pages/home/home' })
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user