This commit is contained in:
yuping
2022-12-15 16:06:04 +08:00
parent 5ed25e488a
commit bddda11e37
3 changed files with 29 additions and 22 deletions

View File

@@ -177,10 +177,11 @@ async function gofun({routerId, name: routerName}) {
// detail.value = data.data
// state.showmapdetail = true;
// router.push({path: "/pathdetails", query: {routerId}});
import.meta.env.DEV ? router.push({
path: "/pathdetails",
query: {routerId, routerName}
}) : window.parent.location.href = `http://u-pre.boe.com/pc/forward?to=/fe-student/pathdetails&params=${encodeURIComponent(`routerId=${routerId}&routerName=${routerName}`)}`
// import.meta.env.DEV ? router.push({
// path: "/pathdetails",
// query: {routerId, routerName}
// }) :
window.open(`http://u-pre.boe.com/pc/forward?to=/fe-student/pathdetails&params=${encodeURIComponent(`routerId=${routerId}&routerName=${routerName}`)}`)
}
function toUnTask() {