From fbdb916a3c949fbad5830133579f62f419083dfc Mon Sep 17 00:00:00 2001 From: yuping <82253452@qq.com> Date: Tue, 13 Dec 2022 21:04:24 +0800 Subject: [PATCH] init --- src/views/roadmap/LearnPath.vue | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/views/roadmap/LearnPath.vue b/src/views/roadmap/LearnPath.vue index 25a7a33..9731122 100644 --- a/src/views/roadmap/LearnPath.vue +++ b/src/views/roadmap/LearnPath.vue @@ -176,7 +176,10 @@ async function gofun({routerId}) { // detail.value = data.data // state.showmapdetail = true; // router.push({path: "/pathdetails", query: {routerId}}); - window.parent.location.href = `http://u-pre.boe.com/pc/forward?to=/fe-student/pathdetails¶ms=${encodeURIComponent(`routerId=${routerId}`)}` + import.meta.env.DEV ? router.push({ + path: "/pathdetails", + query: {routerId} + }) : window.parent.location.href = `http://u-pre.boe.com/pc/forward?to=/fe-student/pathdetails¶ms=${encodeURIComponent(`routerId=${routerId}`)}` } function toUnTask() {