fix(mobile): add fallback for building page back
This commit is contained in:
@@ -23,7 +23,10 @@ onLoad((query) => {
|
|||||||
});
|
});
|
||||||
|
|
||||||
const goBack = () => {
|
const goBack = () => {
|
||||||
uni.navigateBack({ delta: 1 });
|
uni.navigateBack({
|
||||||
|
delta: 1,
|
||||||
|
fail: () => uni.switchTab({ url: '/pages/user/today/index' })
|
||||||
|
});
|
||||||
};
|
};
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user