feat:增加路径图详情关卡预览判断

This commit is contained in:
wyx
2023-03-04 17:33:44 +08:00
parent d0d7ba7e6b
commit d17f8db802
2 changed files with 5 additions and 5 deletions

View File

@@ -79,8 +79,8 @@ export default createStore({
content.commit('INIT_PROJECT_INFO')
})
},
getRouterInfo(content, {routerId}) {
request(ROUTER_PROCESS, {routerId,type:2}).then(res => {
getRouterInfo(content, {routerId,chapterId}) {
request(ROUTER_PROCESS, chapterId?{routerId,type:2,chapterId}:{routerId,type:2}).then(res => {
content.commit('SET_ROUTER_INFO', res.data)
content.commit('INIT_ROUTER_INFO')
})