From 7bcafdd55c3e55581de3c7ab54c9f98da6c94abf Mon Sep 17 00:00:00 2001
From: zhengyiming <540361168@qq.com>
Date: 星期二, 15 七月 2025 14:03:48 +0800
Subject: [PATCH] fix: s

---
 /dev/null             |    1 -
 .umirc.ts             |   16 +---------------
 .umirc.prod.ts        |    5 +++++
 package.json          |    2 +-
 src/Home/Content9.jsx |    3 ++-
 5 files changed, 9 insertions(+), 18 deletions(-)

diff --git a/.env b/.env
deleted file mode 100644
index ea388df..0000000
--- a/.env
+++ /dev/null
@@ -1 +0,0 @@
-UMI_APP_PUBLIC_PATH=/
\ No newline at end of file
diff --git a/.env.production b/.env.production
deleted file mode 100644
index 8dc1696..0000000
--- a/.env.production
+++ /dev/null
@@ -1 +0,0 @@
-UMI_APP_PUBLIC_PATH=/v2/
\ No newline at end of file
diff --git a/.umirc.prod.ts b/.umirc.prod.ts
new file mode 100644
index 0000000..595fb41
--- /dev/null
+++ b/.umirc.prod.ts
@@ -0,0 +1,5 @@
+import { defineConfig } from '@umijs/max';
+
+export default defineConfig({
+  publicPath: '/v2/',
+});
diff --git a/.umirc.ts b/.umirc.ts
index ccd2c9e..13a46e5 100644
--- a/.umirc.ts
+++ b/.umirc.ts
@@ -1,5 +1,5 @@
 import { defineConfig } from '@umijs/max';
-console.log('env', process.env.UMI_APP_PUBLIC_PATH);
+
 export default defineConfig({
   antd: {},
   access: {},
@@ -11,10 +11,6 @@
     slave: {},
   },
   base: '/v2/',
-  publicPath: process.env.UMI_APP_PUBLIC_PATH,
-  // layout: {
-  //   title: '@umijs/max',
-  // },
   routes: [
     {
       path: '/',
@@ -25,16 +21,6 @@
       path: '/about',
       component: './Home',
     },
-    // {
-    //   name: '鏉冮檺婕旂ず',
-    //   path: '/access',
-    //   component: './Access',
-    // },
-    // {
-    //   name: ' CRUD 绀轰緥',
-    //   path: '/table',
-    //   component: './Table',
-    // },
   ],
   npmClient: 'pnpm',
 });
diff --git a/package.json b/package.json
index 8922df6..1a05183 100644
--- a/package.json
+++ b/package.json
@@ -3,7 +3,7 @@
   "private": true,
   "author": "",
   "scripts": {
-    "build": "cross-env NODE_ENV=production REACT_APP_ENV=production UMI_ENV=production max build",
+    "build": "cross-env max build",
     "dev": "max dev",
     "format": "prettier --cache --write .",
     "postinstall": "max setup",
diff --git a/src/Home/Content9.jsx b/src/Home/Content9.jsx
index 48b2016..e5bcc2f 100644
--- a/src/Home/Content9.jsx
+++ b/src/Home/Content9.jsx
@@ -1,6 +1,7 @@
 import QueueAnim from 'rc-queue-anim';
 import OverPack from 'rc-scroll-anim/lib/ScrollOverPack';
 import React from 'react';
+import { targetId } from './data.source';
 import { getChildrenToRender } from './utils';
 
 class Content9 extends React.PureComponent {
@@ -29,7 +30,7 @@
       </QueueAnim>
     );
     return (
-      <OverPack key={i.toString()} {...block}>
+      <OverPack key={i.toString()} {...block} targetId={targetId}>
         {isMobile && textWrapper}
         <QueueAnim
           className="image-wrapper"

--
Gitblit v1.9.1