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()){