|
@@ -66,7 +66,13 @@ export default {
|
|
|
} else {
|
|
} else {
|
|
|
return "RUNNING";
|
|
return "RUNNING";
|
|
|
}
|
|
}
|
|
|
- }
|
|
|
|
|
|
|
+ },
|
|
|
|
|
+ evalURL() {
|
|
|
|
|
+ return this.$store.state.token ? "https://eval.seec.seecoder.cn?id_token=" + this.$store.state.token : "https://eval.seec.seecoder.cn";
|
|
|
|
|
+ },
|
|
|
|
|
+ coderURL() {
|
|
|
|
|
+ return this.$store.state.token ? "https://coder.seec.seecoder.cn?id_token=" + this.$store.state.token : "https://coder.seec.seecoder.cn";
|
|
|
|
|
+ },
|
|
|
},
|
|
},
|
|
|
async mounted() {
|
|
async mounted() {
|
|
|
const res = await this.$apis.getUserAPI(this.examVO.creatorId);
|
|
const res = await this.$apis.getUserAPI(this.examVO.creatorId);
|
|
@@ -80,6 +86,13 @@ export default {
|
|
|
const D = (date.getDate() < 10 ? "0" + date.getDate() : date.getDate());
|
|
const D = (date.getDate() < 10 ? "0" + date.getDate() : date.getDate());
|
|
|
return Y + M + D;
|
|
return Y + M + D;
|
|
|
},
|
|
},
|
|
|
|
|
+ toTestInfo() {
|
|
|
|
|
+ if (this.type === "eval") {
|
|
|
|
|
+ window.open(this.evalURL);
|
|
|
|
|
+ } else {
|
|
|
|
|
+ window.open(this.coderURL);
|
|
|
|
|
+ }
|
|
|
|
|
+ },
|
|
|
}
|
|
}
|
|
|
};
|
|
};
|
|
|
</script>
|
|
</script>
|