mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/fe-student.git
synced 2025-12-10 19:36:48 +08:00
init
This commit is contained in:
@@ -389,17 +389,19 @@ function toFinish(d) {
|
|||||||
} else {
|
} else {
|
||||||
url = types.value.path[d.type][0] + d.targetId;
|
url = types.value.path[d.type][0] + d.targetId;
|
||||||
}
|
}
|
||||||
import.meta.env.DEV
|
// import.meta.env.DEV
|
||||||
? (window.location.href = url)
|
// ? (window.location.href = url)
|
||||||
: (window.parent.location.href = url);
|
// : (window.parent.location.href = url);
|
||||||
|
window.open(url)
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if (types.value.path[d.type] && types.value.path[d.type].startsWith("http")) {
|
if (types.value.path[d.type] && types.value.path[d.type].startsWith("http")) {
|
||||||
//配置文件
|
//配置文件
|
||||||
const url = types.value.path[d.type] + d.targetId;
|
const url = types.value.path[d.type] + d.targetId;
|
||||||
import.meta.env.DEV
|
// import.meta.env.DEV
|
||||||
? (window.location.href = url)
|
// ? (window.location.href = url)
|
||||||
: (window.parent.location.href = url);
|
// : (window.parent.location.href = url);
|
||||||
|
window.open(url)
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if (d.type === 7) {
|
if (d.type === 7) {
|
||||||
@@ -408,9 +410,10 @@ function toFinish(d) {
|
|||||||
console.log("resssss", res);
|
console.log("resssss", res);
|
||||||
if (res.code === 200) {
|
if (res.code === 200) {
|
||||||
const url = res.data.linkAddress;
|
const url = res.data.linkAddress;
|
||||||
import.meta.env.DEV
|
// import.meta.env.DEV
|
||||||
? (window.location.href = url)
|
// ? (window.location.href = url)
|
||||||
: (window.parent.location.href = url);
|
// : (window.parent.location.href = url);
|
||||||
|
window.open(url)
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
return;
|
return;
|
||||||
|
|||||||
@@ -177,10 +177,11 @@ async function gofun({routerId, name: routerName}) {
|
|||||||
// detail.value = data.data
|
// detail.value = data.data
|
||||||
// state.showmapdetail = true;
|
// state.showmapdetail = true;
|
||||||
// router.push({path: "/pathdetails", query: {routerId}});
|
// router.push({path: "/pathdetails", query: {routerId}});
|
||||||
import.meta.env.DEV ? router.push({
|
// import.meta.env.DEV ? router.push({
|
||||||
path: "/pathdetails",
|
// path: "/pathdetails",
|
||||||
query: {routerId, routerName}
|
// query: {routerId, routerName}
|
||||||
}) : window.parent.location.href = `http://u-pre.boe.com/pc/forward?to=/fe-student/pathdetails¶ms=${encodeURIComponent(`routerId=${routerId}&routerName=${routerName}`)}`
|
// }) :
|
||||||
|
window.open(`http://u-pre.boe.com/pc/forward?to=/fe-student/pathdetails¶ms=${encodeURIComponent(`routerId=${routerId}&routerName=${routerName}`)}`)
|
||||||
}
|
}
|
||||||
|
|
||||||
function toUnTask() {
|
function toUnTask() {
|
||||||
|
|||||||
@@ -430,17 +430,19 @@ function toFinish(d, sName) {
|
|||||||
} else {
|
} else {
|
||||||
url = types.value.path[d.type][0] + d.targetId;
|
url = types.value.path[d.type][0] + d.targetId;
|
||||||
}
|
}
|
||||||
import.meta.env.DEV
|
window.open(url)
|
||||||
? (window.location.href = url)
|
// import.meta.env.DEV
|
||||||
: (window.parent.location.href = url);
|
// ? (window.location.href = url)
|
||||||
|
// : (window.parent.location.href = url);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if (types.value.path[d.type] && types.value.path[d.type].startsWith("http")) {
|
if (types.value.path[d.type] && types.value.path[d.type].startsWith("http")) {
|
||||||
//配置文件
|
//配置文件
|
||||||
const url = types.value.path[d.type] + d.targetId;
|
const url = types.value.path[d.type] + d.targetId;
|
||||||
import.meta.env.DEV
|
// import.meta.env.DEV
|
||||||
? (window.location.href = url)
|
// ? (window.location.href = url)
|
||||||
: (window.parent.location.href = url);
|
// : (window.parent.location.href = url);
|
||||||
|
window.open(url)
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if (d.type === 7) {
|
if (d.type === 7) {
|
||||||
@@ -449,9 +451,10 @@ function toFinish(d, sName) {
|
|||||||
console.log("resssss", res);
|
console.log("resssss", res);
|
||||||
if (res.code === 200) {
|
if (res.code === 200) {
|
||||||
const url = res.data.linkAddress;
|
const url = res.data.linkAddress;
|
||||||
import.meta.env.DEV
|
// import.meta.env.DEV
|
||||||
? (window.location.href = url)
|
// ? (window.location.href = url)
|
||||||
: (window.parent.location.href = url);
|
// : (window.parent.location.href = url);
|
||||||
|
window.open(url)
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
return;
|
return;
|
||||||
|
|||||||
Reference in New Issue
Block a user