- adminApi getBoardSetting/setBoardSetting 제거 - 글 수정 화면은 전체 그룹 로드(기존 글 태그 유지), 새 글은 게시판 매핑 그룹만 Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
@@ -23,12 +23,6 @@ export const adminApi = {
|
|||||||
removeTag(id) {
|
removeTag(id) {
|
||||||
return http.delete(`/admin/tags/${id}`)
|
return http.delete(`/admin/tags/${id}`)
|
||||||
},
|
},
|
||||||
getBoardSetting() {
|
|
||||||
return http.get('/admin/board-setting')
|
|
||||||
},
|
|
||||||
setBoardSetting(tagCategoryId) {
|
|
||||||
return http.put('/admin/board-setting', { tagCategoryId })
|
|
||||||
},
|
|
||||||
|
|
||||||
// 기본(디폴트) 분류 관리 (관리자) — 사용자가 '기본 분류 불러오기'로 가져감
|
// 기본(디폴트) 분류 관리 (관리자) — 사용자가 '기본 분류 불러오기'로 가져감
|
||||||
defaultCategories() {
|
defaultCategories() {
|
||||||
|
|||||||
@@ -37,7 +37,8 @@ function toggleTag(id) {
|
|||||||
|
|
||||||
async function loadTagGroups() {
|
async function loadTagGroups() {
|
||||||
try {
|
try {
|
||||||
tagGroups.value = await boardApi.tagGroups(category)
|
// 수정 시엔 전체 그룹(기존 글 태그 유실 방지), 새 글은 이 게시판에 매핑된 그룹만
|
||||||
|
tagGroups.value = await boardApi.tagGroups(isEdit.value ? '' : category)
|
||||||
} catch {
|
} catch {
|
||||||
tagGroups.value = []
|
tagGroups.value = []
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user