Update fill.vue
This commit is contained in:
parent
69d1d54668
commit
bdf4c4bc13
@ -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