Browse Source

小程序-历史数据判定时间修改

dev
liujiangyong 1 year ago
parent
commit
c08cfa13bb
  1. 2
      weapp/src/packages/patrol/index.jsx

2
weapp/src/packages/patrol/index.jsx

@ -318,7 +318,7 @@ const Index = () => {
if (data.handleContent) { if (data.handleContent) {
setHandleCenter(data.handleContent) setHandleCenter(data.handleContent)
} }
setIsBeforeReport(dayjs(data.time).diff('2023-08-02', 'd') < 0) setIsBeforeReport(dayjs(data.time).diff('2023-08-03 00:00:00', 'h') < 0)
} else { } else {
Taro.showToast({ title: res.data.message || '请求出错', icon: 'none' }) Taro.showToast({ title: res.data.message || '请求出错', icon: 'none' })
} }

Loading…
Cancel
Save