From 1357210919d94432f3447ce6375512a239e60462 Mon Sep 17 00:00:00 2001 From: yujialong <479214531@qq.com> Date: Sat, 9 Oct 2021 20:50:38 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E6=B5=8B=E8=AF=95=E6=9C=8D?= =?UTF-8?q?=EF=BC=8C=E4=BC=98=E5=8C=96=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/index.js | 7 ++++--- src/pages/assessment/list/index.vue | 2 +- src/setting.js | 2 +- 3 files changed, 6 insertions(+), 5 deletions(-) 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,