fix(router): /agent/settlement-ratio 경로가 에이전트 상세로 잘못 라우팅되던 문제 수정
정적 경로(`/agent/settlement-ratio`)가 동적 경로(`/agent/:agentId`)보다 뒤에 있어 동적으로 매칭되던 라우팅 우선순위 문제를 해결했습니다. - router/index.js: 정적 경로를 동적 경로보다 앞에 배치 - 기능/로직 변경 없음, 라우팅 매칭 순서만 조정
This commit is contained in:
@@ -56,12 +56,6 @@ const routes = [
|
||||
name: 'AgentList',
|
||||
component: () => import(/* webpackChunkName: "agent" */ '../views/Agent/AgentList.vue')
|
||||
},
|
||||
{
|
||||
path: '/agent/:agentId',
|
||||
name: 'AgentDetail',
|
||||
props: true,
|
||||
component: () => import(/* webpackChunkName: "agent" */ '../views/Agent/AgentDetail.vue')
|
||||
},
|
||||
{
|
||||
path: '/agent/:agentId/settlement/live',
|
||||
name: 'AgentSettlementLive',
|
||||
@@ -97,6 +91,12 @@ const routes = [
|
||||
name: 'AgentSettlementRatio',
|
||||
component: () => import(/* webpackChunkName: "agent" */ '../views/Agent/AgentSettlementRatio.vue')
|
||||
},
|
||||
{
|
||||
path: '/agent/:agentId',
|
||||
name: 'AgentDetail',
|
||||
props: true,
|
||||
component: () => import(/* webpackChunkName: "agent" */ '../views/Agent/AgentDetail.vue')
|
||||
},
|
||||
{
|
||||
path: '/live/tags',
|
||||
name: 'LiveTags',
|
||||
|
||||
Reference in New Issue
Block a user