Files
servicio_social_front/components/botonRegresar.vue
T
Lemuel Marquez dbea788589 registros listos
2021-06-08 12:21:19 -05:00

34 lines
603 B
Vue

<template>
<div class="pb-5 pt-6">
<b-button
type="is-info is-light"
icon-left="arrow-left-box"
@click="regresar()"
>
Regresar
</b-button>
</div>
</template>
<script>
export default {
props: {
path: {
type: String,
required: true,
},
deleteFromLocalStorage: {
type: Array,
default: () => [],
},
},
methods: {
regresar() {
for (let i = 0; i < this.deleteFromLocalStorage.length; i++)
localStorage.removeItem(this.deleteFromLocalStorage[i])
this.$router.push(this.path)
},
},
}
</script>