๋ฐฑ์—”๋“œ ์—ฐ๋™ 4

49. ๊ณ„์•ฝ(์—ฐ๋™)

49. ๊ณ„์•ฝ(์—ฐ๋™) 48. ๊ณ„์•ฝ(๋ฐฑ์—”๋“œ ์ˆ˜์ •) ์—ฐ๋™ ๋ฐฑ์—”๋“œ ์—ฐ๋™ import axios from 'axios'; export default { async created(){ const url = `/REST/scoutone?sno=${this.sno}`; const headers = {"Content-Type":"application/json", token : this.token}; const response = await axios.get(url,{headers}); // console.log(response); this.scout = response.data.scout; this.player = response.data.scout.player; this.agent = response.data.scou..

28. vue ์ƒ์„ฑ(spring ์—ฐ๋™)

28. vue ์ƒ์„ฑ(spring ์—ฐ๋™) vue ํด๋” ์ƒ์„ฑ 1. vue ํด๋”๋ฅผ ์ƒ์„ฑํ•  ์œ„์น˜์—์„œ cmd ์ฐฝ ์‹คํ–‰ 2. ํด๋” ์ƒ์„ฑ ์„ค์ • 1. ์ƒ์„ฑํ•œ vue ์‹คํ–‰ 2. vue.config.js ์ƒ์„ฑ, spring ์—ฐ๋™ module.exports= { //๊ฐœ๋ฐœ ์„œ๋ฒ„ ์„ค์ • devServer: { //ํ”„๋ก์‹œ ์„ค์ • proxy: { //127.0.0.1:8080/REST '/REST':{ //ํ”„๋ก์‹œ ์š”์ฒญ์„ ๋ณด๋‚ธ ์„œ๋ฒ„์˜ ์ฃผ์†Œ target: 'http://localhost:8080', changeOrigin: true, logLevel: 'debug', } }, //vue์˜ ํฌํŠธ ๋ฒˆํ˜ธ //127.0.0.1:9090 port: 9090 } }; ๋ผ์šฐํ„ฐ ์„ค์น˜ * ๋ผ์šฐํ„ฐ : ๋ผ์šฐํŒ…(์›น ํŽ˜์ด์ง€ ๊ฐ„ ์ด๋™๋ฐฉ๋ฒ•) ๊ธฐ๋Šฅ์„ ๊ตฌํ˜„ํ•  ์ˆ˜ ์žˆ๊ฒŒ..

Vue ์ผ์ง€ #22 (20211005) ํšŒ์›๊ฐ€์ž…

22. ํšŒ์›๊ฐ€์ž… -ํšŒ์› ๊ฐ€์ž… ๋ฐฑ์—”๋“œ : #45 ํšŒ์›๊ฐ€์ž… * axios ์„ค์น˜(cmd) *ํšŒ์›๊ฐ€์ž… ํšŒ๋ฉด ๊ตฌ์„ฑ(Join.vue) ํšŒ์› ๊ฐ€์ž… ์ด๋ฉ”์ผ ์•”ํ˜ธ ์•”ํ˜ธ ํ™•์ธ ์ด๋ฆ„ ๊ณ ๊ฐ ํŒ๋งค์ž ๊ด€๋ฆฌ์ž *ํšŒ๋ฉด ํ™•์ธ *ํšŒ์›๊ฐ€์ž… ๋ฒ„ํŠผ ํด๋ฆญ ์‹œ ์ด๋ฒคํŠธ ๊ตฌ์„ฑ(Join.vue) *console.log(response); ๋ฅผ ์ด์šฉํ•ด ๋ฒ„ํŠผ ํด๋ฆญ ํ›„ ์ „๋‹ฌ๊ฐ’ ํ™•์ธํ•œ๋‹ค. import axios from 'axios' export default { methods:{ async handleJoin(){ const url = "/REST/api/member/join"; const headers = {"Content-Type":"application/json"} const body = { email : this.email, passwd : this..

node, vue 2021.10.05

Vue ์ผ์ง€ #21 (20211005) Spring ์—ฐ๋™

21. Spring ์—ฐ๋™ #10 ์ฐธ์กฐ -ํด๋” ์ƒ์„ฑ -์„ค์ •ํ•˜๊ธฐ(๋ฐฑ์—”๋“œ ์—ฐ๋™) *vue.config.js ์ƒ์„ฑ(vue20211005) module.exports= { //๊ฐœ๋ฐœ ์„œ๋ฒ„ ์„ค์ • devServer: { //ํ”„๋ก์‹œ ์„ค์ • proxy: { //127.0.0.1:8080/REST/api '/REST/api':{ //ํ”„๋ก์‹œ ์š”์ฒญ์„ ๋ณด๋‚ธ ์„œ๋ฒ„์˜ ์ฃผ์†Œ target: 'http://localhost:8080', changeOrigin: true, logLevel: 'debug', } }, //vue์˜ ํฌํŠธ ๋ฒˆํ˜ธ //127.0.0.1:9090 port: 9090 } }; -vue ์ƒ์„ฑ, ๋ผ์šฐํ„ฐ ์„ค์น˜ *vue ์ƒ์„ฑ(join, login) *๋ผ์šฐํ„ฐ ์„ค์น˜(cmd) * npm install vue-router@next --..

node, vue 2021.10.05