From ea9d565c8c38a77916eb2fee2adafc4c61d00044 Mon Sep 17 00:00:00 2001 From: wyx Date: Thu, 16 Feb 2023 17:55:50 +0800 Subject: [PATCH] =?UTF-8?q?fix:=E8=B7=AF=E5=BE=84=E5=9B=BE=E7=AE=A1?= =?UTF-8?q?=E7=90=86=E8=B7=B3=E8=BD=AC=E9=97=AE=E9=A2=98=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/learningpath/LearningPath.vue | 2 ++ src/views/learningpath/LevelAdd.vue | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/views/learningpath/LearningPath.vue b/src/views/learningpath/LearningPath.vue index 016050d1..4e5d517c 100644 --- a/src/views/learningpath/LearningPath.vue +++ b/src/views/learningpath/LearningPath.vue @@ -1500,6 +1500,8 @@ export default { } ); function manage(id) { + // TODO 为了点击顶部面包屑导航返回而存储 + localStorage.setItem('routerId',id) router.push({ path: "/leveladd", query:{routerId:id} diff --git a/src/views/learningpath/LevelAdd.vue b/src/views/learningpath/LevelAdd.vue index 85b2789c..d79311b2 100644 --- a/src/views/learningpath/LevelAdd.vue +++ b/src/views/learningpath/LevelAdd.vue @@ -1424,7 +1424,7 @@ export default { hasTask: false, stage: [], statess: [], - routerId: route.query.routerId, //学习路径页面传的学习路径id + routerId: route.query.routerId?route.query.routerId:localStorage.getItem('routerId'), //学习路径页面传的学习路径id gatename: null, //关卡名称 gatenamee: null, //学员管理关卡名称 action: null,