diff --git a/src/api/index.js b/src/api/index.js index 59352c8..925f7b7 100644 --- a/src/api/index.js +++ b/src/api/index.js @@ -1,8 +1,9 @@ import Setting from "@/setting"; // let host = Setting.apiBaseURL // let host = "http://192.168.31.151:9000/"; // 榕 -let host = 'http://192.168.31.125:9000/'; // 坤 -let xsHost = "http://39.108.250.202:9000/"; // 线上 +// let host = 'http://192.168.31.125:9000/'; // 坤 + +let host = "http://39.108.250.202:9000/"; // 测试服 let uploadURL = Setting.upload.apiURL; @@ -15,7 +16,7 @@ export default { logins: `${host}users/users/user/login`, //登录 verification: `${host}users/users/user/captcha`,// 验证码图片 // bindPhoneOrEmail:`${host}users/users/userAccount/bindPhoneOrEmail`,// 绑定手机 - // sendPhoneOrEmailCode:`${host} users/users/userAccount/sendPhoneOrEmailCode`,// 手机验证码 + // sendPhoneOrEmailCode:`${host}users/users/userAccount/sendPhoneOrEmailCode`,// 手机验证码 //学生管理 diff --git a/src/pages/assessment/list/index.vue b/src/pages/assessment/list/index.vue index 61d6f06..974c8dc 100644 --- a/src/pages/assessment/list/index.vue +++ b/src/pages/assessment/list/index.vue @@ -247,7 +247,7 @@ export default { for (let i = 0; i < this.listData.length; i++) { const item = this.listData[i]; if (item.countDown > 0) { - item.countDown = item.countDown - 1; + item.countDown--; } this.$set(this.listData, i, item); } diff --git a/src/setting.js b/src/setting.js index ac06798..2c7bfda 100644 --- a/src/setting.js +++ b/src/setting.js @@ -83,7 +83,7 @@ const Setting = { isBeta, // 是否是职站测试 isPro, // 是否是职站生产 schoolId, // 学校id - systemId: systemList[0].id, // 默认系统id + systemId: systemList.length && systemList[0].id, // 默认系统id // 子系统列表.改的时候留意要改的是哪个环境,别影响到了其他环境 // 以后如果卖给了其他学校,要给该学校单独开放子系统的话,就在下面这个数组里加判断就行,然后把需要开放的子系统放出来。不要复制这个职站项目另起一个项目,这样学校一多就很难维护了 systemList,