Browse Source

ADD:删掉了开屏动画和antd pro有关的字样

wjj 3 years ago
parent
commit
3bd01fb440
3 changed files with 16 additions and 16 deletions
  1. 7 7
      src/layouts/BasicLayout.jsx
  2. 2 2
      src/layouts/UserLayout.jsx
  3. 7 7
      src/pages/document.ejs

+ 7 - 7
src/layouts/BasicLayout.jsx

@@ -52,13 +52,13 @@ const BasicLayout = (props) => {
     },
   } = props;
   const menuDataRef = useRef([]);
-  useEffect(() => {
-    if (dispatch) {
-      dispatch({
-        type: 'user/fetchCurrent',
-      });
-    }
-  }, []);
+  // useEffect(() => {
+  //   if (dispatch) {
+  //     dispatch({
+  //       type: 'user/fetchCurrent',
+  //     });
+  //   }
+  // }, []);
   /** Init variables */
 
   const handleMenuCollapse = (payload) => {

+ 2 - 2
src/layouts/UserLayout.jsx

@@ -42,13 +42,13 @@ const UserLayout = (props) => {
             <div className={styles.header}>
               <Link to="/">
                 <img alt="logo" className={styles.logo} src={logo} />
-                <span className={styles.title}>Ant Design</span>
+                <span className={styles.title}>众测服务系统</span>
               </Link>
             </div>
             <div className={styles.desc}>
               <FormattedMessage
                 id="pages.layouts.userLayout.title"
-                defaultMessage="Ant Design 是西湖区最具影响力的 Web 设计规范"
+                defaultMessage=""
               />
             </div>
           </div>

+ 7 - 7
src/pages/document.ejs

@@ -190,7 +190,7 @@
           min-height: 420px;
         "
       >
-        <img src="<%= context.config.publicPath +'pro_icon.svg'%>" alt="logo" width="256" />
+<!--        <img src="../assets/logo.png" alt="logo" width="256" />-->
         <div class="page-loading-warp">
           <div class="ant-spin ant-spin-lg ant-spin-spinning">
             <span class="ant-spin-dot ant-spin-dot-spin"
@@ -200,12 +200,12 @@
           </div>
         </div>
         <div style="display: flex; align-items: center; justify-content: center">
-          <img
-            src="https://gw.alipayobjects.com/zos/rmsportal/KDpgvguMpGfqaHPjicRK.svg"
-            width="32"
-            style="margin-right: 8px"
-          />
-          Ant Design
+<!--          <img-->
+<!--            src="../assets/logo.png"-->
+<!--            width="32"-->
+<!--            style="margin-right: 8px"-->
+<!--          />-->
+          <h2>众测服务系统</h2>
         </div>
       </div>
     </div>