From fa7d09b15cf322ed320436319eb543d2673c3f52 Mon Sep 17 00:00:00 2001 From: java110 <928255095@qq.com> Date: Fri, 10 Sep 2021 14:32:06 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A4=84=E7=90=86=20=E6=9B=BF=E6=8D=A2?= =?UTF-8?q?=E5=87=BD=E6=95=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- constant/url.js | 1 + pages/questionAnswer/questionAnswer.vue | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/constant/url.js b/constant/url.js index dd0ccc1..f39133c 100755 --- a/constant/url.js +++ b/constant/url.js @@ -126,6 +126,7 @@ export default { querySettingTitle: baseUrl + "app/reportInfoSettingTitle/querySettingTitle", saveReportInfoAnswerValue: baseUrl + "app/reportInfoAnswerValue/saveReportInfoAnswerValue", + NEED_NOT_LOGIN_PAGE: [ '/pages/login/login', '/pages/register/register', diff --git a/pages/questionAnswer/questionAnswer.vue b/pages/questionAnswer/questionAnswer.vue index b6f81e1..7705cfe 100644 --- a/pages/questionAnswer/questionAnswer.vue +++ b/pages/questionAnswer/questionAnswer.vue @@ -64,9 +64,9 @@ }) .then(_data=>{ _data.data.forEach(function(item, index) { - item.endTime = item.endTime.replace("-","/"); + item.endTime = item.endTime.replaceAll("-","/"); let _endTime = new Date(item.endTime); - let _startTime = new Date(item.startTime.replace("-","/")); + let _startTime = new Date(item.startTime.replaceAll("-","/")); if(_startTime.getTime() > new Date().getTime()){ item.state = '-1'; } else if(_endTime.getTime() > new Date().getTime()){