|
@@ -64,6 +64,13 @@ import { openWS, closeWsWithoutReconnect } from "./ws.js";
|
|
import { createNamespacedHelpers } from "vuex";
|
|
import { createNamespacedHelpers } from "vuex";
|
|
const { mapState, mapMutations } = createNamespacedHelpers("examingHomeModule");
|
|
const { mapState, mapMutations } = createNamespacedHelpers("examingHomeModule");
|
|
|
|
|
|
|
|
+const DOMAINS_CAN_UPLOAD_PHOTOS = ["iepcc-ps.ecs.qmth.com.cn"];
|
|
|
|
+
|
|
|
|
+if (process.env.VUE_APP_CAN_UPLOAD_PHOTOS_FOR_TEST === "true") {
|
|
|
|
+ DOMAINS_CAN_UPLOAD_PHOTOS.push(
|
|
|
|
+ ...["ecs-dev.qmth.com.cn", "test.qmth.com.cn", "test.ecs-dev.qmth.com.cn"]
|
|
|
|
+ );
|
|
|
|
+}
|
|
export default {
|
|
export default {
|
|
name: "ExamingHome",
|
|
name: "ExamingHome",
|
|
data() {
|
|
data() {
|
|
@@ -403,7 +410,7 @@ export default {
|
|
|
|
|
|
const shouldOpenWS =
|
|
const shouldOpenWS =
|
|
examQuestionList.find(v => v.answerType === "SINGLE_AUDIO") ||
|
|
examQuestionList.find(v => v.answerType === "SINGLE_AUDIO") ||
|
|
- this.$store.state.user.schoolDomain === "iepcc-ps.ecs.qmth.com.cn";
|
|
|
|
|
|
+ DOMAINS_CAN_UPLOAD_PHOTOS.includes(this.$store.state.user.schoolDomain);
|
|
|
|
|
|
if (shouldOpenWS) {
|
|
if (shouldOpenWS) {
|
|
// console.log("have single");
|
|
// console.log("have single");
|