Răsfoiți Sursa

Merge branch 'master' into mfyx_3.0

lwei 11 luni în urmă
părinte
comite
c79a07f59d
3 a modificat fișierele cu 10 adăugiri și 10 ștergeri
  1. 2 1
      public/index.html
  2. 1 3
      src/Column/ColumnIndex.tsx
  3. 7 6
      src/NewPageHeader.tsx

+ 2 - 1
public/index.html

@@ -43,6 +43,7 @@
       To begin the development, run `npm start` or `yarn start`.
       To create a production bundle, use `npm run build` or `yarn build`.
     -->
-  </body>
+  </body>  
   <script type="text/javascript" src="https://res.wx.qq.com/connect/zh_CN/htmledition/js/wxLogin.js"></script>
+  <script type="text/javascript" src="http://res2.wx.qq.com/open/js/jweixin-1.6.0.js"></script>
 </html>

+ 1 - 3
src/Column/ColumnIndex.tsx

@@ -156,7 +156,7 @@ const ColumnIndex: React.FC<IColumnIndexProps> = props => {
   }
 
   const handleOpenModel = (type: 'editInfo' | 'openCenter' | 'openCreate') => {
-    if (!columnAuthor?.IsImproveInformation) {
+    if (type !== 'editInfo' && !columnAuthor?.IsImproveInformation) {
       message.error('请先完善专栏信息')
       return
     }
@@ -164,7 +164,6 @@ const ColumnIndex: React.FC<IColumnIndexProps> = props => {
       case 'editInfo':
         setEditInfoVisible(true)
         break
-
       case 'openCenter':
         setOpenCenter(true)
         break
@@ -181,7 +180,6 @@ const ColumnIndex: React.FC<IColumnIndexProps> = props => {
       case 'editInfo':
         setEditInfoVisible(false)
         break
-
       case 'openCenter':
         setOpenCenter(false)
         break

+ 7 - 6
src/NewPageHeader.tsx

@@ -149,12 +149,13 @@ const NewPage: React.FC = props => {
       {isShowMobileMenu ? (
         <div className={styles['newpage-mobile-header']}>
           <div className="newpage-mobile-menu-wrapper">
-            <img
-              src="https://hzstatic.hzinsights.com/cygx_web/ico/logo_inedx.png"
-              className={styles.headerLogo}
-              alt="logo"
-            />
-
+            <Link to="/" className={styles['logo-wrapper']}>
+              <img
+                src="https://hzstatic.hzinsights.com/cygx_web/ico/logo_inedx.png"
+                className={styles.headerLogo}
+                alt="logo"
+              />
+            </Link>
             {login2p.jwt ? (
               <img
                 src={login2p.userInfo?.Headimgurl}