Skip to content

Commit

Permalink
F 修复浏览器控制台警告信息
Browse files Browse the repository at this point in the history
  • Loading branch information
vapao committed Jan 30, 2020
1 parent 96ac87a commit 21c284b
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
1 change: 0 additions & 1 deletion spug_web/src/pages/monitor/Table.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ import http from 'libs/http';
import store from './store';
import hostStore from '../host/store';
import lds from 'lodash';
import moment from "moment";
import groupStore from "pages/alarm/group/store";

@observer
Expand Down
3 changes: 2 additions & 1 deletion spug_web/src/pages/monitor/store.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,8 @@ class Store {
.then(res => {
res.map(item => {
const value = item['latest_run_time'];
item['latest_run_time'] = value ? moment(value).fromNow() : null
item['latest_run_time'] = value ? moment(value).fromNow() : null;
return null
});
this.records = res
})
Expand Down
1 change: 0 additions & 1 deletion spug_web/src/pages/schedule/Table.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ import http from 'libs/http';
import store from './store';
import { LinkButton } from "components";
import Info from './Info';
import moment from "moment";

@observer
class ComTable extends React.Component {
Expand Down
3 changes: 2 additions & 1 deletion spug_web/src/pages/schedule/store.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,8 @@ class Store {
.then(({types, tasks}) => {
tasks.map(item => {
const value = item['latest_run_time'];
item['latest_run_time'] = value ? moment(value).fromNow() : null
item['latest_run_time'] = value ? moment(value).fromNow() : null;
return null
});
this.records = tasks;
this.types = types
Expand Down

0 comments on commit 21c284b

Please sign in to comment.