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 {
|
||||
url = types.value.path[d.type][0] + d.targetId;
|
||||
}
|
||||
import.meta.env.DEV
|
||||
? (window.location.href = url)
|
||||
: (window.parent.location.href = url);
|
||||
// import.meta.env.DEV
|
||||
// ? (window.location.href = url)
|
||||
// : (window.parent.location.href = url);
|
||||
window.open(url)
|
||||
return;
|
||||
}
|
||||
if (types.value.path[d.type] && types.value.path[d.type].startsWith("http")) {
|
||||
//配置文件
|
||||
const url = types.value.path[d.type] + d.targetId;
|
||||
import.meta.env.DEV
|
||||
? (window.location.href = url)
|
||||
: (window.parent.location.href = url);
|
||||
// import.meta.env.DEV
|
||||
// ? (window.location.href = url)
|
||||
// : (window.parent.location.href = url);
|
||||
window.open(url)
|
||||
return;
|
||||
}
|
||||
if (d.type === 7) {
|
||||
@@ -408,9 +410,10 @@ function toFinish(d) {
|
||||
console.log("resssss", res);
|
||||
if (res.code === 200) {
|
||||
const url = res.data.linkAddress;
|
||||
import.meta.env.DEV
|
||||
? (window.location.href = url)
|
||||
: (window.parent.location.href = url);
|
||||
// import.meta.env.DEV
|
||||
// ? (window.location.href = url)
|
||||
// : (window.parent.location.href = url);
|
||||
window.open(url)
|
||||
}
|
||||
});
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user