라이브 관심사 - API URL 수정

This commit is contained in:
Yu Sung 2023-08-06 22:42:31 +09:00
parent fb08221aa3
commit 80f819744e
2 changed files with 13 additions and 6 deletions

View File

@ -1,7 +1,7 @@
import Vue from 'vue';
async function enrollment(formData) {
return Vue.axios.post('/suda/tag', formData, {
return Vue.axios.post('/live/tag', formData, {
headers: {
"Content-Type": "multipart/form-data",
},
@ -9,15 +9,15 @@ async function enrollment(formData) {
}
async function getTags() {
return Vue.axios.get('/suda/tag');
return Vue.axios.get('/live/tag');
}
async function deleteTag(tagId) {
return Vue.axios.delete('/suda/tag/' + tagId)
return Vue.axios.delete('/live/tag/' + tagId)
}
async function modifyTag(tagId, formData) {
return Vue.axios.put('/suda/tag/' + tagId, formData, {
return Vue.axios.put('/live/tag/' + tagId, formData, {
headers: {
"Content-Type": "multipart/form-data",
},
@ -25,7 +25,7 @@ async function modifyTag(tagId, formData) {
}
async function updateTagOrders(ids) {
return Vue.axios.put('/suda/tag/orders', { ids: ids })
return Vue.axios.put('/live/tag/orders', { ids: ids })
}
export { enrollment, getTags, deleteTag, modifyTag, updateTagOrders }

View File

@ -78,7 +78,12 @@
</template>
<v-card>
<v-card-title>관심사 등록</v-card-title>
<v-card-title v-if="selected_tag !== null">
관심사 수정
</v-card-title>
<v-card-title v-else>
관심사 등록
</v-card-title>
<v-card-text>
<v-text-field
v-model="tag_text"
@ -194,6 +199,7 @@ export default {
this.image = null
this.image_url = null
this.tag_text = null
this.selected_tag = null
},
showModifyTagDialog(tag) {
@ -269,6 +275,7 @@ export default {
if (res.status === 200 && res.data.success === true) {
this.show_dialog = false
this.selected_tag = null
this.image = null
this.image_url = null
this.tag_text = null