添加计分本页面分享
This commit is contained in:
@@ -18,8 +18,18 @@ const props = defineProps({
|
||||
});
|
||||
|
||||
const onClick = () => {
|
||||
if (props.onBack) props.onBack();
|
||||
else uni.navigateBack();
|
||||
if (props.onBack) {
|
||||
props.onBack();
|
||||
} else {
|
||||
const pages = getCurrentPages();
|
||||
if (pages.length > 1) {
|
||||
uni.navigateBack();
|
||||
} else {
|
||||
uni.redirectTo({
|
||||
url: "/pages/index",
|
||||
});
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
const loading = ref(false);
|
||||
|
||||
Reference in New Issue
Block a user