lanjianrong 5 лет назад
Родитель
Сommit
ff89d19a70
2 измененных файлов с 4 добавлено и 3 удалено
  1. 3 2
      src/layouts/BasicLayout.jsx
  2. 1 1
      src/pages/Customer/Contact/index.jsx

+ 3 - 2
src/layouts/BasicLayout.jsx

@@ -146,11 +146,12 @@ const BasicLayout = props => {
         menuDataRef.current = menuData || []
         return menuData || []
       }}>
-      <TransitionGroup className="wrap-container">
+      {/* <TransitionGroup className="wrap-container">
         <CSSTransition key={location.pathname} timeout={250} classNames="fade">
           <ConfigProvider locale={zhCN}>{children}</ConfigProvider>
         </CSSTransition>
-      </TransitionGroup>
+      </TransitionGroup> */}
+      <ConfigProvider locale={zhCN}>{children}</ConfigProvider>
       {/* <Authorized authority={authorized.authority} noMatch={noMatch}> */}
       {/* </Authorized> */}
     </ProLayout>

+ 1 - 1
src/pages/Customer/Contact/index.jsx

@@ -25,7 +25,7 @@ const Contact = props => {
   const initData = async payload => {
     const {
       code = -1,
-      data: { client = [], total = 0 }
+      data: { client = [], total = 0 } = { client: [], total: 0 }
     } = await queryContact(payload)
     if (code === consts.RET_CODE.SUCCESS) {
       setState({ ...state, data: client, total })