shaogen1995 2 年之前
父节点
当前提交
1c0f3eaa53

+ 2 - 0
src/App.tsx

@@ -13,6 +13,7 @@ import UpAsyncLoding from "./components/UpAsyncLoding";
 import VideoLookDom from "./components/VideoLookDom";
 const Layout = React.lazy(() => import("./pages/Layout"));
 const Login = React.lazy(() => import("./pages/Login"));
+const H5Code = React.lazy(() => import("./pages/H5Code"));
 
 export default function App() {
   const dispatch = useDispatch();
@@ -29,6 +30,7 @@ export default function App() {
         <React.Suspense fallback={<SpinLoding />}>
           <Switch>
             <Route path="/login" component={Login} />
+            <Route path="/code" component={H5Code} />
             <AuthRoute path="/" component={Layout} />
           </Switch>
         </React.Suspense>

+ 5 - 0
src/pages/H5Code/index.module.scss

@@ -0,0 +1,5 @@
+.H5Code{
+  :global{
+    
+  }
+}

+ 14 - 0
src/pages/H5Code/index.tsx

@@ -0,0 +1,14 @@
+import React from "react";
+import styles from "./index.module.scss";
+ function H5Code() {
+  
+  return (
+    <div className={styles.H5Code}>
+      <h1>H5Code</h1>
+    </div>
+  )
+}
+
+const MemoH5Code = React.memo(H5Code);
+
+export default MemoH5Code;

+ 0 - 1
src/pages/Hot/index.module.scss

@@ -158,7 +158,6 @@
           justify-content: space-between;
 
           .hotRightMainRow1 {
-            cursor: pointer;
             width: calc(100% - 50px);
             overflow: hidden;
             text-overflow: ellipsis;

+ 2 - 2
src/pages/Hot/index.tsx

@@ -301,11 +301,11 @@ function Hot() {
               />
             </div>
           </div>
-          {1 + 1 === 2 ? (
+          {likeData.length ? (
             <div className="hotRightMain">
               {likeData.slice(0, 20).map((v, i) => (
                 <div className="hotRightMainRow" key={i}>
-                  <div className="hotRightMainRow1" title="666666">
+                  <div className="hotRightMainRow1" title={v.name}>
                     {i + 1}. {v.name}
                   </div>
                   <div className="hotRightMainRow2">{v.pcs}</div>

+ 10 - 10
src/pages/Wall/WallTable/index.tsx

@@ -32,16 +32,6 @@ function WallTable() {
     dispatch(getWallTableListAPI());
   }, [dispatch]);
 
-  // 切换表格中的启用停用状态
-  const isEnabledClickFu = useCallback(
-    async (val: boolean, id: number) => {
-      const isDisable = val ? 1 : 0;
-      const res: any = await awllDisplayAPI(id, isDisable);
-      if (res.code === 0) dispatch(getWallTableListAPI());
-    },
-    [dispatch]
-  );
-
   // 点击删除
   const delTableFu = useCallback(
     async (id: number) => {
@@ -57,6 +47,16 @@ function WallTable() {
   // 从仓库中获取列表数据
   const results = useSelector((state: RootState) => state.wallReducer.list);
 
+  // 切换表格中的启用停用状态
+  const isEnabledClickFu = useCallback(
+    async (val: boolean, id: number) => {
+      const isDisable = val ? 1 : 0;
+      const res: any = await awllDisplayAPI(id, isDisable);
+      if (res.code === 0) dispatch(getWallTableListAPI());
+    },
+    [dispatch]
+  );
+
   // 点击新增或者编辑
   const [open, setOpen] = useState(false);