shenwu il y a 5 jours
Parent
commit
c0322ef3df
3 fichiers modifiés avec 11 ajouts et 4 suppressions
  1. 5 0
      config/routes.tsx
  2. 3 0
      src/pages/ai/index.less
  3. 3 4
      src/pages/ai/index.tsx

+ 5 - 0
config/routes.tsx

@@ -241,6 +241,11 @@ const newMenu = [
         name: '人物创作',
         component: './ai',
       },
+      {
+        path: "/ai/story-short",
+        name: '小说超短篇',
+        component: './ai',
+      },
     ],
   }
 ];

+ 3 - 0
src/pages/ai/index.less

@@ -0,0 +1,3 @@
+.ant-pro-base-menu-inline-item-title .ant-pro-base-menu-inline-item-text{
+    font-weight: 600;
+}

+ 3 - 4
src/pages/ai/index.tsx

@@ -32,6 +32,9 @@ function Ai() {
             case "#/ai/character":
                 setUrl("https://ibiling.cn/novel/detail/2xsrwsd?pageid=01j4re8c7qmmyn3ws2wr3etr6r")
                break;
+            case "#/ai/story-short":
+                setUrl("https://ibiling.cn/story-short")
+                break   
         }
     },[])
     return <div>
@@ -41,13 +44,9 @@ function Ai() {
                 width={"100%"}
                 height={"100%"}
                 frameBorder={0}
-                style={{ position: "absolute", top: -63,left:"-20%",width:"110%",}}
                 src={url}
             >
             </iframe>
-            <div style={{width:"28%",height:"100%",background:"#fff",zIndex:99,position:"absolute",right:0,top:0}}></div>
-            <div style={{width:"15%",height:"100%",background:"#fff",zIndex:99,position:"absolute",left:0,top:0}}></div>
-            {/* <div style={{width:"50%",height:"10%",background:"#fff",zIndex:99,position:"absolute",left:"15%",top:0}}></div> */}
         </div>
     </div>
 }