añadido refresh y rutas protegidas
This commit is contained in:
@@ -7,16 +7,11 @@
|
||||
<div class="row">{{ listaStore.pb.authStore.token }}</div>
|
||||
<div class="row">{{ listaStore.pb.authStore.model.id }}</div>
|
||||
</div>
|
||||
<q-btn @click="logout()">Cerrar</q-btn>
|
||||
<q-btn @click="listaStore.pb.authStore.clear()">Cerrar</q-btn>
|
||||
</q-page>
|
||||
</template>
|
||||
|
||||
<script setup>
|
||||
import { ref } from "vue";
|
||||
import { useListaStore } from "../stores/lista.js";
|
||||
const listaStore = useListaStore();
|
||||
const logout = () => {
|
||||
listaStore.pb.authStore.clear();
|
||||
console.log(listaStore.pb.authStore.isValid);
|
||||
};
|
||||
</script>
|
||||
|
||||
Reference in New Issue
Block a user