Changeset 2a2614e for ReserveNGo-frontend/src/components/Project/login_.vue
- Timestamp:
- 01/26/25 00:32:02 (3 months ago)
- Branches:
- master
- Children:
- 231918f
- Parents:
- 9bcad23
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
ReserveNGo-frontend/src/components/Project/login_.vue
r9bcad23 r2a2614e 3 3 4 4 import { userStore } from '@/PiniaStores/UserStore.js' 5 6 import {useRouter} from 'vue-router' 7 import router from '@/router/index.js' 5 8 6 9 export default { … … 16 19 userStore_: userStore(), 17 20 21 router: useRouter() 22 18 23 } 19 24 }, 20 25 methods: { 21 /*async makeLogin() {26 async makeLogin() { 22 27 23 28 await fetch(this.url, { … … 29 34 }) 30 35 }).then((response) => response.json()) 31 .then(json => ) 36 .then(json => {this.userStore_.setLocalStorage(json); 37 router.push('/')}) 32 38 33 } */39 } 34 40 } 35 41 } … … 43 49 44 50 <div class="row justify-content-center "> 45 51 <!-- <form v-on:submit.prevent="makeLogin">--> 46 52 <!-- <form action="http://localhost:8080/api/auth/login" method="POST">--> 47 53 <div class="col-3">
Note:
See TracChangeset
for help on using the changeset viewer.