store.state.userInfo);
const activeName = ref("first");
@@ -324,7 +324,7 @@ const activeName = ref("first");
const handleClick = (tab, event) => {
console.log(tab, event);
};
-const path = { 1: "path" };
+const path = {1: "path"};
const types = ref({
typeName: {
@@ -390,16 +390,16 @@ function toFinish(d) {
url = types.value.path[d.type][0] + d.targetId;
}
import.meta.env.DEV
- ? (window.location.href = url)
- : (window.parent.location.href = url);
+ ? (window.location.href = url)
+ : (window.parent.location.href = 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);
+ ? (window.location.href = url)
+ : (window.parent.location.href = url);
return;
}
if (d.type === 7) {
@@ -409,15 +409,15 @@ function toFinish(d) {
if (res.code === 200) {
const url = res.data.linkAddress;
import.meta.env.DEV
- ? (window.location.href = url)
- : (window.parent.location.href = url);
+ ? (window.location.href = url)
+ : (window.parent.location.href = url);
}
});
return;
}
router.push({
path: types.value.path[d.type],
- query: { id: d.projectTaskId, type: 2, courseId: d.courseId },
+ query: {id: d.projectTaskId, type: 2, courseId: d.courseId},
});
}