mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/fe-student.git
synced 2025-12-11 11:56:48 +08:00
feat:增加外部内部测评
This commit is contained in:
@@ -591,10 +591,13 @@ const types = ref({
|
||||
7: " ",
|
||||
8: "/discusspage",
|
||||
9: "/moreactive",
|
||||
10: import.meta.env.VITE_BOE_TEST_DETAIL_URL, //测评
|
||||
10: [
|
||||
import.meta.env.VITE_BOE_TEST_DETAIL_URL,
|
||||
import.meta.env.VITE_BOE_TEST_OUT_DETAIL_URL,
|
||||
], //测评
|
||||
11: "/surveydetail",
|
||||
12: "/ballotpage",
|
||||
13: "去完成",
|
||||
13: "/projectdetails",
|
||||
},
|
||||
});
|
||||
|
||||
@@ -604,6 +607,18 @@ function toFinish(d) {
|
||||
ElMessage.error("暂时未开放");
|
||||
return;
|
||||
}
|
||||
if (d.type == 10) {
|
||||
let url = "";
|
||||
if (d.evaTyp == 1) {
|
||||
url = types.value.path[d.type][1] + d.targetId;
|
||||
} else {
|
||||
url = types.value.path[d.type][0] + d.targetId;
|
||||
}
|
||||
import.meta.env.DEV
|
||||
? (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;
|
||||
|
||||
Reference in New Issue
Block a user