로그인 4

31. 로그인

31. 로그인 7. 로그인 연동 로그인 페이지 라우터 추가 1. 로그인 파일 생성 2. 라우터 추가 2-1. index.js import { createWebHistory, createRouter } from "vue-router"; import Home from '@/components/Home' import Join from '@/components/Join' import Login from '@/components/Login' const routes = [ {path:'/', name:'Home', component:Home}, {path:'/Join', name:'Join', component:Join}, {path:'/Login', name:'Login', component:Login}, ] c..

프로젝트 2022.01.10

Vue 일지 #23 (20211005) 로그인

23. 로그인 -로그인 백엔드 : #46 로그인 *로그인 화면 구성(Login.vue) 로그인 아이디 암호 *화면 확인 *로그인 버튼 클릭 시 이벤트 구성(Loginb.vue) *console.log(response); 를 이용해 전달값 확인 import axios from 'axios' export default { methods:{ async handleLogin(){ const url = "/REST/api/member/login"; const headers = {"Content-Type":"application/json"}; const body = { email : this.email, passwd : this.passwd, } const response = await axios.post(url,..

node, vue 2021.10.05