zhengyiming
2025-07-15 7bcafdd55c3e55581de3c7ab54c9f98da6c94abf
fix: s
1个文件已添加
2个文件已删除
3个文件已修改
28 ■■■■■ 已修改文件
.env 1 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
.env.production 1 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
.umirc.prod.ts 5 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
.umirc.ts 16 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
package.json 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/Home/Content9.jsx 3 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
.env
File was deleted
.env.production
File was deleted
.umirc.prod.ts
New file
@@ -0,0 +1,5 @@
import { defineConfig } from '@umijs/max';
export default defineConfig({
  publicPath: '/v2/',
});
.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',
});
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",
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"