Commit eef33c20 authored by 熊成伟's avatar 熊成伟

debug

parent 246a9cee
Pipeline #15300 failed with stages
in 30 seconds
This diff is collapsed.
......@@ -7285,6 +7285,11 @@
"minimist": "^1.2.5"
}
},
"moment": {
"version": "2.26.0",
"resolved": "https://registry.npm.taobao.org/moment/download/moment-2.26.0.tgz",
"integrity": "sha1-Xh+Cxrr8pug+gIswyHBe7Q3L05o="
},
"ms": {
"version": "2.0.0",
"resolved": "https://registry.npm.taobao.org/ms/download/ms-2.0.0.tgz?cache=0&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fms%2Fdownload%2Fms-2.0.0.tgz",
......
......@@ -9,6 +9,7 @@
"customize-cra": "^1.0.0",
"http-proxy-middleware": "^1.0.4",
"lib-flexible": "^0.3.2",
"moment": "^2.26.0",
"postcss-px2rem": "^0.3.0",
"qs": "^6.9.4",
"react": "^16.8.4",
......
import React from 'react';
import moment from 'moment'
import './index.less'
const Index = (props) => {
......@@ -31,8 +32,8 @@ const Index = (props) => {
</div>
<div className="todo-footer">
<div>
<p className="pos-aline"><img alt="" src="/img/time.png" className="footer-mes-img"/>更新时间:2020-05-26 17:51</p>
<p className="pos-aline footer-mes-sec"><img alt="" src="/img/time-2.png" className="footer-mes-img"/>停滞时间:24h</p>
<p className="pos-aline"><img alt="" src="/img/time.png" className="footer-mes-img"/>更新时间:{data.RECEIVEDATE && moment(data.RECEIVEDATE).format("YYYY-MM-DD HH:mm:ss") || ''}</p>
<p className="pos-aline footer-mes-sec"><img alt="" src="/img/time-2.png" className="footer-mes-img"/>发起时间:{data.SENDTIME && moment(data.SENDTIME).format("YYYY-MM-DD HH:mm:ss") || ''}</p>
</div>
<img
alt=""
......
......@@ -52,7 +52,7 @@ export const createAPI = (baseURL) => {
// console.log(response)
if (!response || !response.data) {
response.code === 'idt-core-500' && (window.location.href = '/login')
response.message === '票据已经失效' && (window.location.href = '/login')
console.log('response出错, 无返回数据!', response); return false;
};
if (response.data && response.data.errorMessage) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment