Commit e0c4b126 authored by shj's avatar shj

[MOD] axi 요청 url 수정

parent 7f195dc7
...@@ -334,7 +334,7 @@ export default{ ...@@ -334,7 +334,7 @@ export default{
async getGuideIndex(){ async getGuideIndex(){
this.loadingPageList = true this.loadingPageList = true
await this.$axios.get('http://localhost:5000/test/index') await this.$axios.get('/test/index')
.then(res => { .then(res => {
this.rawIndexList = JSON.parse(JSON.stringify(res.data)); this.rawIndexList = JSON.parse(JSON.stringify(res.data));
let unclassifiedList = JSON.parse(JSON.stringify(res.data)); let unclassifiedList = JSON.parse(JSON.stringify(res.data));
...@@ -512,7 +512,7 @@ export default{ ...@@ -512,7 +512,7 @@ export default{
return return
} }
this.$axios.post('http://localhost:5000/test', this.formData) this.$axios.post('/test', this.formData)
.then(res=>{ .then(res=>{
this.getGuideIndex() this.getGuideIndex()
}) })
...@@ -528,7 +528,7 @@ export default{ ...@@ -528,7 +528,7 @@ export default{
return return
} }
this.$axios.put('http://localhost:5000/test/index', this.formData) this.$axios.put('/test/index', this.formData)
.then(res=>{ .then(res=>{
this.getGuideIndex() this.getGuideIndex()
}) })
...@@ -537,7 +537,7 @@ export default{ ...@@ -537,7 +537,7 @@ export default{
}) })
}, },
removeIndex(){ removeIndex(){
this.$axios.delete("http://localhost:5000/test", { this.$axios.delete("/test", {
params:{ params:{
guideId: this.formData.id, guideId: this.formData.id,
} }
......
...@@ -143,7 +143,7 @@ export default { ...@@ -143,7 +143,7 @@ export default {
methods:{ methods:{
async getGuide(id){ async getGuide(id){
this.loading = true this.loading = true
await this.$axios.get('http://localhost:5000/test',{ await this.$axios.get('/test',{
params:{ params:{
guideId: id guideId: id
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment