Skip to content

Commit 21c284b

Browse files
committed
F 修复浏览器控制台警告信息
1 parent 96ac87a commit 21c284b

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

spug_web/src/pages/monitor/Table.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@ import http from 'libs/http';
1212
import store from './store';
1313
import hostStore from '../host/store';
1414
import lds from 'lodash';
15-
import moment from "moment";
1615
import groupStore from "pages/alarm/group/store";
1716

1817
@observer

spug_web/src/pages/monitor/store.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,8 @@ class Store {
2222
.then(res => {
2323
res.map(item => {
2424
const value = item['latest_run_time'];
25-
item['latest_run_time'] = value ? moment(value).fromNow() : null
25+
item['latest_run_time'] = value ? moment(value).fromNow() : null;
26+
return null
2627
});
2728
this.records = res
2829
})

spug_web/src/pages/schedule/Table.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ import http from 'libs/http';
1111
import store from './store';
1212
import { LinkButton } from "components";
1313
import Info from './Info';
14-
import moment from "moment";
1514

1615
@observer
1716
class ComTable extends React.Component {

spug_web/src/pages/schedule/store.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,8 @@ class Store {
2626
.then(({types, tasks}) => {
2727
tasks.map(item => {
2828
const value = item['latest_run_time'];
29-
item['latest_run_time'] = value ? moment(value).fromNow() : null
29+
item['latest_run_time'] = value ? moment(value).fromNow() : null;
30+
return null
3031
});
3132
this.records = tasks;
3233
this.types = types

0 commit comments

Comments
 (0)