From 80f819744ef9a05dda43c8ea98607fe94b90f26a Mon Sep 17 00:00:00 2001 From: Yu Sung Date: Sun, 6 Aug 2023 22:42:31 +0900 Subject: [PATCH] =?UTF-8?q?=EB=9D=BC=EC=9D=B4=EB=B8=8C=20=EA=B4=80?= =?UTF-8?q?=EC=8B=AC=EC=82=AC=20-=20API=20URL=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/live_tag.js | 10 +++++----- src/views/Live/LiveTags.vue | 9 ++++++++- 2 files changed, 13 insertions(+), 6 deletions(-) diff --git a/src/api/live_tag.js b/src/api/live_tag.js index cd8ff90..3245a97 100644 --- a/src/api/live_tag.js +++ b/src/api/live_tag.js @@ -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 } diff --git a/src/views/Live/LiveTags.vue b/src/views/Live/LiveTags.vue index 6cd78e4..44202d2 100644 --- a/src/views/Live/LiveTags.vue +++ b/src/views/Live/LiveTags.vue @@ -78,7 +78,12 @@ - 관심사 등록 + + 관심사 수정 + + + 관심사 등록 +