Browse Source

删除无用引用

zhuth 6 years ago
parent
commit
fa1cc7f0a7
2 changed files with 1 additions and 9 deletions
  1. 1 5
      src/components/logs/logs.jsx
  2. 0 4
      src/models/logs.js

+ 1 - 5
src/components/logs/logs.jsx

@@ -1,5 +1,5 @@
 import React from 'react'
-import { Layout, Row, Col, Input, Button, Table, Icon, Card } from 'antd'
+import { Layout, Row, Col, Input, Table, Card } from 'antd'
 import { connect } from 'dva'
 import { dateFormat } from '../../utils/baseUtils'
 import './logs.less'
@@ -12,13 +12,10 @@ class Logs extends React.Component {
         this.state = {
             pageSize: 10,
             tableBodyHeight: 0,
-            //visibleAddMemberBox: false
         }
     };
 
     componentDidMount() {
-        const { dispatch } = this.props;
-        //dispatch({ type: 'userGroup/fetchList', autoSelect: true });
         this.tableSize();
         window.addEventListener('resize', this.tableSize);
     }
@@ -38,7 +35,6 @@ class Logs extends React.Component {
 
     render() {
         const { logs } = this.props 
-        const { tableBodyHeight, pageSize, visibleDeleteBox } = this.state;
         const logsColumns = [{
             title: '界面名称',
             dataIndex: 'name',

+ 0 - 4
src/models/logs.js

@@ -1,7 +1,3 @@
-import { message } from 'antd'
-import * as service from '../services/index'
-import URLS from '../constants/url'
-
 export default {
     namespace: 'logs',
     state: {