添加计分本页面分享

This commit is contained in:
kron
2025-09-22 14:55:00 +08:00
parent 0de4dc8e6d
commit 59016fe54f
4 changed files with 32 additions and 3 deletions

View File

@@ -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);

View File

@@ -73,6 +73,7 @@ onMounted(() => {
}
.container > view:first-child > view:last-child {
font-weight: 500;
color: #000;
}
.labels {
align-items: flex-end !important;