This commit is contained in:
abearxiong committed 2025-12-03 00:22:00 +08:00
1 parent 8e6d6855e9
commit 6b8bce1557
4 files changed
+155 -8

No files matched your search

+2 -5
View File
@@ -16,6 +16,7 @@ const { $slidev } = useSlideContext();
const props = defineProps({
go: {
default: 1,
type: [Number, String],
},
arrow: {
type: String,
@@ -24,11 +25,7 @@ const props = defineProps({
});
const onClick = () => {
const go = props.go;
if (go <= 0) {
$slidev.nav.go(1);
return;
}
console.log('GoBack.vue go:', go);
$slidev.nav.go(go);
};
</script>