feat(agent): 사이드바에 ‘에이전트 관리’ 메뉴 및 라우트/기본 뷰 추가

- router: /agent/list, /agent/settlement-ratio 라우트 등록
- SideMenu: ‘크리에이터 관리’ 바로 아래 ‘에이전트 관리’ 섹션 동적 삽입
- views: AgentList.vue, AgentSettlementRatio.vue 스텁 추가
This commit is contained in:
Yu Sung
2026-04-11 20:37:49 +09:00
parent 864402b09d
commit 2277f9eca6
4 changed files with 72 additions and 0 deletions

View File

@@ -150,6 +150,29 @@ export default {
]
})
// 에이전트 관리 메뉴를 '크리에이터 관리' 바로 아래에 추가
try {
const insertAfterTitle = '크리에이터 관리'
const agentMenu = {
title: '에이전트 관리',
route: null,
items: [
{ title: '에이전트 리스트', route: '/agent/list', items: null },
{ title: '에이전트 정산 비율', route: '/agent/settlement-ratio', items: null },
]
}
const idx = this.items.findIndex(m => m && m.title === insertAfterTitle)
if (idx >= 0) {
this.items.splice(idx + 1, 0, agentMenu)
} else {
// 기준 메뉴가 없으면 하단에 추가
this.items.push(agentMenu)
}
} catch (e) {
// ignore
}
// 정산 관리 메뉴에 '채널 후원 정산' 추가
try {
const calculateMenu = this.items.find(m => m && m.title === '정산 관리')