|
|
@@ -392,10 +392,10 @@ export default {
|
|
|
formatTimestamp,
|
|
|
problemTypeToTagContent,
|
|
|
jumpToCoderOnlineExam() {
|
|
|
- ElMessage.info("跳转到coder进行在线考试");
|
|
|
- let nextURL = "https://coder.seec.seecoder.cn/exam/" + this.exam.id + "?id_token=" + this.$store.state.user.token;
|
|
|
+ let firstQuestionId = this.exam.problems[0].id;
|
|
|
+ // let nextURL = "https://coder.seec.seecoder.cn/exam/" + this.exam.id + "?id_token=" + this.$store.state.user.token; //跳转到Coder
|
|
|
+ let nextURL = `https://ide-test.seec.seecoder.cn/?examId=${this.exam.id}&questionId=${firstQuestionId}&id_token=${this.$store.state.user.token}`;
|
|
|
window.open(nextURL);
|
|
|
- //TODO 在Coder中设置路由拦截器,进行token解析
|
|
|
},
|
|
|
goToDetect() {
|
|
|
// ElMessage.error("暂不支持查看查重结果");
|
|
|
@@ -487,7 +487,7 @@ export default {
|
|
|
message: "参加考试成功!",
|
|
|
center: true
|
|
|
});
|
|
|
- console.log(_res);
|
|
|
+ console.log("参加考试接口返回信息", _res);
|
|
|
this.fetchExamDetail();
|
|
|
}).catch(_err => {
|
|
|
this.$message.error({
|