refactor: board_setting 제거에 따른 정리 + 수정 시 태그 유실 방지
CI / build (push) Failing after 12m59s

- adminApi getBoardSetting/setBoardSetting 제거
- 글 수정 화면은 전체 그룹 로드(기존 글 태그 유지), 새 글은 게시판 매핑 그룹만

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
ByungCheol
2026-06-28 14:05:12 +09:00
parent c167875567
commit 7e096d5e7b
2 changed files with 2 additions and 7 deletions
-6
View File
@@ -23,12 +23,6 @@ export const adminApi = {
removeTag(id) {
return http.delete(`/admin/tags/${id}`)
},
getBoardSetting() {
return http.get('/admin/board-setting')
},
setBoardSetting(tagCategoryId) {
return http.put('/admin/board-setting', { tagCategoryId })
},
// 기본(디폴트) 분류 관리 (관리자) — 사용자가 '기본 분류 불러오기'로 가져감
defaultCategories() {
+2 -1
View File
@@ -37,7 +37,8 @@ function toggleTag(id) {
async function loadTagGroups() {
try {
tagGroups.value = await boardApi.tagGroups(category)
// 수정 시엔 전체 그룹(기존 글 태그 유실 방지), 새 글은 이 게시판에 매핑된 그룹만
tagGroups.value = await boardApi.tagGroups(isEdit.value ? '' : category)
} catch {
tagGroups.value = []
}