feat:修改版本及路径跳转

This commit is contained in:
lixg
2023-03-01 17:24:48 +08:00
parent 4d4ec3f8e8
commit bbb3c67cb7
3 changed files with 9 additions and 18 deletions

View File

@@ -132,22 +132,13 @@ function toDetail(i) {
if (current.value !== i) {
return;
}
import.meta.env.MODE === "development" || import.meta.env.MODE === "test"
? router.push({
path: "/pathmappage",
query: {
routerId: props.routerId,
// routerName: props.detail.routerName,
},
})
: window.open(
`${
window.location.protocol + import.meta.env.VITE_BOE_PATH_DETAIL_URL
}/pathmappage&params=${encodeURIComponent(
`routerId=${props.routerId}`
)}`,
"_top"
);
router.push({
path: "/pathmappage",
query: {
routerId: props.routerId,
// routerName: props.detail.routerName,
},
});
}
function close() {