generated from template/astro-simple-template
update
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user