28 lines
478 B
Vue
28 lines
478 B
Vue
<template>
|
|
<button class="button is-white go-back" @click="back">
|
|
<img src="@/assets/icons/dark-left-arrow.svg" alt="back" />
|
|
</button>
|
|
</template>
|
|
|
|
<script lang="ts">
|
|
import { defineComponent } from 'vue'
|
|
import { useRouter } from 'vue-router'
|
|
|
|
export default defineComponent({
|
|
name: 'GoBack',
|
|
setup() {
|
|
const { go } = useRouter()
|
|
|
|
return {
|
|
back: () => go(-1)
|
|
}
|
|
}
|
|
})
|
|
</script>
|
|
|
|
<style lang="scss" scoped>
|
|
.go-back {
|
|
margin: 10px 0;
|
|
}
|
|
</style>
|