diff --git a/AccountCenter/snapshot.png b/AccountCenter/snapshot.png index 37682d94a65757897a2b368721e927450fbc306d..6147c42451c624a266f531d81b717cac0918ca97 100644 Binary files a/AccountCenter/snapshot.png and b/AccountCenter/snapshot.png differ diff --git a/AccountSettings/snapshot.png b/AccountSettings/snapshot.png index c9958cde64eb6f4a82f41608a2e49b3d0b12529c..a7e9d1c557c586b296b1d47698c74a0fc83937a6 100644 Binary files a/AccountSettings/snapshot.png and b/AccountSettings/snapshot.png differ diff --git a/DashboardAnalysis/snapshot.png b/DashboardAnalysis/snapshot.png index c79d7da9d4a0a33f702f54ff904742c22e8026ae..84a47c341fa47fe632d38483538abef17ded7847 100644 Binary files a/DashboardAnalysis/snapshot.png and b/DashboardAnalysis/snapshot.png differ diff --git a/DashboardMonitor/snapshot.png b/DashboardMonitor/snapshot.png index dc983040af72188e9cc11fcce70ed31704219e63..abcdc2aa932dc62c16dcbf3867a6aa3287851551 100644 Binary files a/DashboardMonitor/snapshot.png and b/DashboardMonitor/snapshot.png differ diff --git a/DashboardWorkplace/snapshot.png b/DashboardWorkplace/snapshot.png index 56381e1d6b64cd3d9317b897ef2ca61fcb8b3f35..b931d56cfcfc5c43337c1c854336e9af6719553e 100644 Binary files a/DashboardWorkplace/snapshot.png and b/DashboardWorkplace/snapshot.png differ diff --git a/EditorFlow/snapshot.png b/EditorFlow/snapshot.png index 418bcff35a97e9bc9e1d99c6c454372c3cfe2b3a..97e4b585aaddf7866e4d99ad7bb4cb34e5a11350 100644 Binary files a/EditorFlow/snapshot.png and b/EditorFlow/snapshot.png differ diff --git a/EditorKoni/snapshot.png b/EditorKoni/snapshot.png index 7322a9ba822f208082ab637b0f3128d6089d0844..bace4fcbe71619308a86ebeb01dde06f14524d69 100644 Binary files a/EditorKoni/snapshot.png and b/EditorKoni/snapshot.png differ diff --git a/EditorMind/snapshot.png b/EditorMind/snapshot.png index b692564511a916c2f6ea87d5c9d1c3c04535f516..11babb80b42709ea25af0acd7d6c0051114f21d3 100644 Binary files a/EditorMind/snapshot.png and b/EditorMind/snapshot.png differ diff --git a/Exception403/snapshot.png b/Exception403/snapshot.png index 3312ee66080a2a4230f2815890a65266252fa71c..f97d559d9cf51b189aad68b1b50281baf70f9db6 100644 Binary files a/Exception403/snapshot.png and b/Exception403/snapshot.png differ diff --git a/Exception404/snapshot.png b/Exception404/snapshot.png index ac91451a50210f8f5af5c7d20ac10837c59b3647..60032df16580406c46eb3571224dcbd29a0edba3 100644 Binary files a/Exception404/snapshot.png and b/Exception404/snapshot.png differ diff --git a/Exception500/snapshot.png b/Exception500/snapshot.png index d436fbe9182cad7c145e648f24546248532c1dd0..49d18c29470300e4d609a34d5c6bf0ddca771902 100644 Binary files a/Exception500/snapshot.png and b/Exception500/snapshot.png differ diff --git a/FormAdvancedForm/snapshot.png b/FormAdvancedForm/snapshot.png index 7a9998c140440430f0738840888f595d6439dace..916ba596394dd625da4d1438b4a82c79398fdd3c 100644 Binary files a/FormAdvancedForm/snapshot.png and b/FormAdvancedForm/snapshot.png differ diff --git a/FormBasicForm/snapshot.png b/FormBasicForm/snapshot.png index 215db729130f4c09ff64163a12d7f76286c0bcd8..b0b6e9f9b928fe5525d3ef38ad895b026b498512 100644 Binary files a/FormBasicForm/snapshot.png and b/FormBasicForm/snapshot.png differ diff --git a/FormStepForm/snapshot.png b/FormStepForm/snapshot.png index 22d5f8db953062b7beaba628018faa6a33d9924f..8a222e5dc1a37f99561f595ae1b6286622ea386c 100644 Binary files a/FormStepForm/snapshot.png and b/FormStepForm/snapshot.png differ diff --git a/ListBasicList/snapshot.png b/ListBasicList/snapshot.png index ba32adc894db38435ccc582ed5d036c78a2d6fc8..6c0eea285394c5a1f8300690b9f885443687f7de 100644 Binary files a/ListBasicList/snapshot.png and b/ListBasicList/snapshot.png differ diff --git a/ListCardList/snapshot.png b/ListCardList/snapshot.png index 5a2418a5384921b40d64e31786345c0940a4e737..d22cfa5debb7b1894d10cf3186282ace4f546105 100644 Binary files a/ListCardList/snapshot.png and b/ListCardList/snapshot.png differ diff --git a/ListSearch/snapshot.png b/ListSearch/snapshot.png index 03c8fc091a18e162a82652fd67ab6b20f5a78a13..8f2bbc1cdde9f23398b047750b563d7fa01fdd5f 100644 Binary files a/ListSearch/snapshot.png and b/ListSearch/snapshot.png differ diff --git a/ListSearchApplications/snapshot.png b/ListSearchApplications/snapshot.png index 1f50de3e76328ec79799e371758bb8732cce2ebe..864013a03ed57be6e5982759dc6467da2d0417c9 100644 Binary files a/ListSearchApplications/snapshot.png and b/ListSearchApplications/snapshot.png differ diff --git a/ListSearchArticles/snapshot.png b/ListSearchArticles/snapshot.png index a63275e1a88089c843f6fc69ee9a4b9b08d9c6e3..34cd73d3418c980b6a9a22b9026a06086864ad22 100644 Binary files a/ListSearchArticles/snapshot.png and b/ListSearchArticles/snapshot.png differ diff --git a/ListSearchProjects/snapshot.png b/ListSearchProjects/snapshot.png index 3a7bd64dc3cb185b46985b0c8de866b2ebdfae16..b4095f8f147a9249d241deebeb45196a426faf1b 100644 Binary files a/ListSearchProjects/snapshot.png and b/ListSearchProjects/snapshot.png differ diff --git a/ListTableList/snapshot.png b/ListTableList/snapshot.png index e93a449c4e40a59b6df76b6581aa55d23b96ba4c..e84c78c183b587815b05619ec0f6eb1ca8c53c7b 100644 Binary files a/ListTableList/snapshot.png and b/ListTableList/snapshot.png differ diff --git a/ProfileAdvanced/snapshot.png b/ProfileAdvanced/snapshot.png index 4ed56a213565af00073800ed20a7480ce81e5152..941835dcd7e7f7e5625e4e0f28702edaf6a522fc 100644 Binary files a/ProfileAdvanced/snapshot.png and b/ProfileAdvanced/snapshot.png differ diff --git a/ProfileAdvanced/src/DescriptionList/Description.tsx b/ProfileAdvanced/src/DescriptionList/Description.tsx deleted file mode 100644 index d09ea52a040e201a6cfef808a2a5c79fc5d02eca..0000000000000000000000000000000000000000 --- a/ProfileAdvanced/src/DescriptionList/Description.tsx +++ /dev/null @@ -1,26 +0,0 @@ -import React from 'react'; -import { Col } from 'antd'; -import styles from './index.less'; -import responsive from './responsive'; -import { ColProps } from 'antd/es/col'; - -export interface DescriptionProps extends ColProps { - column?: number; - key?: string | number; - style?: React.CSSProperties; - term?: React.ReactNode; -} - -const Description: React.SFC = props => { - const { term, column = 3, children, ...restProps } = props; - return ( - - {term &&
{term}
} - {children !== null && children !== undefined && ( -
{children}
- )} - - ); -}; - -export default Description; diff --git a/ProfileAdvanced/src/DescriptionList/DescriptionList.tsx b/ProfileAdvanced/src/DescriptionList/DescriptionList.tsx deleted file mode 100644 index f5e3749faad06f2cdfea4e666b3a203405d02658..0000000000000000000000000000000000000000 --- a/ProfileAdvanced/src/DescriptionList/DescriptionList.tsx +++ /dev/null @@ -1,49 +0,0 @@ -import React from 'react'; -import classNames from 'classnames'; -import { Row } from 'antd'; -import styles from './index.less'; -import Description, { DescriptionProps } from './Description'; - -export interface DescriptionListProps { - className?: string; - col?: number; - description?: DescriptionProps[]; - gutter?: number; - layout?: 'horizontal' | 'vertical'; - size?: 'large' | 'small'; - style?: React.CSSProperties; - title?: React.ReactNode; -} - -const DescriptionList: React.SFC & { - Description: typeof Description; -} = ({ - className, - title, - col = 3, - layout = 'horizontal', - gutter = 32, - children, - size, - ...restProps -}) => { - const clsString = classNames(styles.descriptionList, styles[layout], className, { - [styles.small]: size === 'small', - [styles.large]: size === 'large', - }); - const column = col > 4 ? 4 : col; - return ( -
- {title ?
{title}
: null} - - {React.Children.map(children, (child: any) => - child ? React.cloneElement(child, { column }) : child, - )} - -
- ); -}; - -DescriptionList.Description = Description; - -export default DescriptionList; diff --git a/ProfileAdvanced/src/DescriptionList/index.less b/ProfileAdvanced/src/DescriptionList/index.less deleted file mode 100644 index 259e54112a2165ed6f4c0537858d0fb387a770e9..0000000000000000000000000000000000000000 --- a/ProfileAdvanced/src/DescriptionList/index.less +++ /dev/null @@ -1,92 +0,0 @@ -@import '~antd/es/style/themes/default.less'; - -.descriptionList { - // offset the padding-bottom of last row - :global { - .ant-row { - margin-bottom: -16px; - overflow: hidden; - } - } - // fix margin top error of following descriptionList - & + & { - :global { - .ant-row { - margin-top: 16px; - } - } - } - - .title { - margin-bottom: 16px; - color: @heading-color; - font-weight: 500; - font-size: 14px; - } - - .term { - display: table-cell; - padding-bottom: 16px; - color: @heading-color; - // Line-height is 22px IE dom height will calculate error - line-height: 20px; - white-space: nowrap; - - &::after { - position: relative; - top: -0.5px; - margin: 0 8px 0 2px; - content: ':'; - } - } - - .detail { - display: table-cell; - width: 100%; - padding-bottom: 16px; - color: @text-color; - line-height: 20px; - } - - &.small { - // offset the padding-bottom of last row - :global { - .ant-row { - margin-bottom: -8px; - } - } - // fix margin top error of following descriptionList - & + .descriptionList { - :global { - .ant-row { - margin-top: 8px; - } - } - } - .title { - margin-bottom: 12px; - color: @text-color; - } - .term, - .detail { - padding-bottom: 8px; - } - } - - &.large { - .title { - font-size: 16px; - } - } - - &.vertical { - .term { - display: block; - padding-bottom: 8px; - } - - .detail { - display: block; - } - } -} diff --git a/ProfileAdvanced/src/DescriptionList/index.tsx b/ProfileAdvanced/src/DescriptionList/index.tsx deleted file mode 100644 index 24ce8f7a0e0951ebdd1fd1afe78908f68be40fef..0000000000000000000000000000000000000000 --- a/ProfileAdvanced/src/DescriptionList/index.tsx +++ /dev/null @@ -1,3 +0,0 @@ -import DescriptionList from './DescriptionList'; - -export default DescriptionList; diff --git a/ProfileAdvanced/src/DescriptionList/responsive.tsx b/ProfileAdvanced/src/DescriptionList/responsive.tsx deleted file mode 100644 index a5aa73f781e3eccdbae4dffd656e201589575554..0000000000000000000000000000000000000000 --- a/ProfileAdvanced/src/DescriptionList/responsive.tsx +++ /dev/null @@ -1,6 +0,0 @@ -export default { - 1: { xs: 24 }, - 2: { xs: 24, sm: 12 }, - 3: { xs: 24, sm: 12, md: 8 }, - 4: { xs: 24, sm: 12, md: 6 }, -}; diff --git a/ProfileAdvanced/src/index.tsx b/ProfileAdvanced/src/index.tsx index 2afa5db34edcfc2005e5d985a665c5a764e5c422..c3603c3bcc0f16351b5a7a7b35f37027edc6d33f 100644 --- a/ProfileAdvanced/src/index.tsx +++ b/ProfileAdvanced/src/index.tsx @@ -1,6 +1,6 @@ import React, { Component, Fragment } from 'react'; import { Dispatch } from 'redux'; -import { RouteContext, GridContent } from '@ant-design/pro-layout'; +import { GridContent, PageHeaderWrapper } from '@ant-design/pro-layout'; import { connect } from 'dva'; import { Button, @@ -12,22 +12,17 @@ import { Steps, Card, Popover, - PageHeader, Badge, Table, Tooltip, Divider, - Typography, - Tabs, + Descriptions, } from 'antd'; -import { TabsProps } from 'antd/es/tabs'; import classNames from 'classnames'; -import DescriptionList from './DescriptionList'; import styles from './style.less'; import { AdvancedProfileData } from './data'; const { Step } = Steps; -const { Description } = DescriptionList; const ButtonGroup = Button.Group; const getWindowWidth = () => window.innerWidth || document.documentElement.clientWidth; @@ -73,55 +68,18 @@ const extra = ( ); const description = ( - - 曲丽丽 - XX 服务 - 2017-07-07 - + + 曲丽丽 + XX 服务 + 2017-07-07 + 12421 - - 2017-07-07 ~ 2017-08-08 - 请于两个工作日内确认 - + + 2017-07-07 ~ 2017-08-08 + 请于两个工作日内确认 + ); -/** - * render Footer tabList - * In order to be compatible with the old version of the PageHeader - * basically all the functions are implemented. - */ -const RenderFooter = ({ - tabList, - tabActiveKey, - onTabChange, - tabBarExtraContent, -}: { - tabList: Array<{ - tab: string; - key: string; - }>; - tabActiveKey?: string; - onTabChange?: (key: string) => void; - tabBarExtraContent?: TabsProps['tabBarExtraContent']; -}) => { - return tabList && tabList.length ? ( - { - if (onTabChange) { - onTabChange(key); - } - }} - tabBarExtraContent={tabBarExtraContent} - > - {tabList.map(item => ( - - ))} - - ) : null; -}; - const desc1 = (
@@ -236,7 +194,7 @@ const columns = [ }), ) class PAGE_NAME_UPPER_CAMEL_CASE extends Component< - { loading: boolean; BLOCK_NAME_CAMEL_CASE: AdvancedProfileData; dispatch: Dispatch }, + { loading: boolean; BLOCK_NAME_CAMEL_CASE: AdvancedProfileData; dispatch: Dispatch }, { operationKey: string; stepDirection: 'horizontal' | 'vertical'; @@ -251,7 +209,7 @@ class PAGE_NAME_UPPER_CAMEL_CASE extends Component< }; componentDidMount() { - const { dispatch, BLOCK_NAME_CAMEL_CASE } = this.props; + const { dispatch } = this.props; dispatch({ type: 'BLOCK_NAME_CAMEL_CASE/fetchAdvanced', }); @@ -312,146 +270,111 @@ class PAGE_NAME_UPPER_CAMEL_CASE extends Component< ), }; return ( - - {value => { - return ( - <> - - 单号:234231029431 - - } - style={{ - margin: -24, - }} - extra={action} - footer={ - - } - > -
+
+ + + + + + + + + + + + 付小小 + 32943898021309809423 + 3321944288191034921 + 18112345678 + + 曲丽丽 18100000000 浙江省杭州市西湖区黄姑山路工专路交叉路口 + + + + 725 + 2017-08-08 + + 某某数据 + + + + + } > - {description} - {extra} -
- -
- - - - - - - - - - - - 付小小 - 32943898021309809423 - 3321944288191034921 - 18112345678 - - 曲丽丽 18100000000 浙江省杭州市西湖区黄姑山路工专路交叉路口 - - - - 725 - 2017-08-08 -   - - 某某数据 - - - - - } - > - 725 - - 2017-08-08 - -

信息组

- - - 林东东 - 1234567 - XX公司 - YY部 - 2017-08-08 - - 这段描述很长很长很长很长很长很长很长很长很长很长很长很长很长很长... - - - - - - Citrullus lanatus (Thunb.) Matsum. et - Nakai一年生蔓生藤本;茎、枝粗壮,具明显的棱。卷须较粗.. - - - - - 付小小 - 1234568 - - -
- -
- - 暂无数据 -
-
- - {contentList[operationKey]} - -
+ 725 + + 2017-08-08 + +

信息组

+ + + 林东东 + 1234567 + XX公司 - YY部 + 2017-08-08 + + 这段描述很长很长很长很长很长很长很长很长很长很长很长很长很长很长... + + + + + + Citrullus lanatus (Thunb.) Matsum. et + Nakai一年生蔓生藤本;茎、枝粗壮,具明显的棱。卷须较粗.. + + + + + 付小小 + 1234568 + + + + +
+ + 暂无数据
- - ); - }} - +
+ + {contentList[operationKey]} + + +
+ ); } } diff --git a/ProfileAdvanced/src/style.less b/ProfileAdvanced/src/style.less index 3141ed1ba6589bca225aca7169bd247d31e253a8..235ff3e2c4b0b3853d2b9f44ffbbe17eb4be40df 100644 --- a/ProfileAdvanced/src/style.less +++ b/ProfileAdvanced/src/style.less @@ -1,7 +1,18 @@ @import '~antd/es/style/themes/default.less'; +.main { + table { + table-layout: fixed; + } +} + .headerList { margin-bottom: 4px; + :global { + .ant-descriptions-row > td { + padding-bottom: 8px; + } + } } .tabsCard { diff --git a/ProfileBasic/snapshot.png b/ProfileBasic/snapshot.png index 1e84304d397c9a941a7f38b121ff124a1d27ae57..29d7d5d44849fa335335ac7d6c8de6356873cee0 100644 Binary files a/ProfileBasic/snapshot.png and b/ProfileBasic/snapshot.png differ diff --git a/ProfileBasic/src/components/DescriptionList/Description.tsx b/ProfileBasic/src/components/DescriptionList/Description.tsx deleted file mode 100644 index d09ea52a040e201a6cfef808a2a5c79fc5d02eca..0000000000000000000000000000000000000000 --- a/ProfileBasic/src/components/DescriptionList/Description.tsx +++ /dev/null @@ -1,26 +0,0 @@ -import React from 'react'; -import { Col } from 'antd'; -import styles from './index.less'; -import responsive from './responsive'; -import { ColProps } from 'antd/es/col'; - -export interface DescriptionProps extends ColProps { - column?: number; - key?: string | number; - style?: React.CSSProperties; - term?: React.ReactNode; -} - -const Description: React.SFC = props => { - const { term, column = 3, children, ...restProps } = props; - return ( - - {term &&
{term}
} - {children !== null && children !== undefined && ( -
{children}
- )} - - ); -}; - -export default Description; diff --git a/ProfileBasic/src/components/DescriptionList/DescriptionList.tsx b/ProfileBasic/src/components/DescriptionList/DescriptionList.tsx deleted file mode 100644 index f5e3749faad06f2cdfea4e666b3a203405d02658..0000000000000000000000000000000000000000 --- a/ProfileBasic/src/components/DescriptionList/DescriptionList.tsx +++ /dev/null @@ -1,49 +0,0 @@ -import React from 'react'; -import classNames from 'classnames'; -import { Row } from 'antd'; -import styles from './index.less'; -import Description, { DescriptionProps } from './Description'; - -export interface DescriptionListProps { - className?: string; - col?: number; - description?: DescriptionProps[]; - gutter?: number; - layout?: 'horizontal' | 'vertical'; - size?: 'large' | 'small'; - style?: React.CSSProperties; - title?: React.ReactNode; -} - -const DescriptionList: React.SFC & { - Description: typeof Description; -} = ({ - className, - title, - col = 3, - layout = 'horizontal', - gutter = 32, - children, - size, - ...restProps -}) => { - const clsString = classNames(styles.descriptionList, styles[layout], className, { - [styles.small]: size === 'small', - [styles.large]: size === 'large', - }); - const column = col > 4 ? 4 : col; - return ( -
- {title ?
{title}
: null} - - {React.Children.map(children, (child: any) => - child ? React.cloneElement(child, { column }) : child, - )} - -
- ); -}; - -DescriptionList.Description = Description; - -export default DescriptionList; diff --git a/ProfileBasic/src/components/DescriptionList/index.less b/ProfileBasic/src/components/DescriptionList/index.less deleted file mode 100644 index 259e54112a2165ed6f4c0537858d0fb387a770e9..0000000000000000000000000000000000000000 --- a/ProfileBasic/src/components/DescriptionList/index.less +++ /dev/null @@ -1,92 +0,0 @@ -@import '~antd/es/style/themes/default.less'; - -.descriptionList { - // offset the padding-bottom of last row - :global { - .ant-row { - margin-bottom: -16px; - overflow: hidden; - } - } - // fix margin top error of following descriptionList - & + & { - :global { - .ant-row { - margin-top: 16px; - } - } - } - - .title { - margin-bottom: 16px; - color: @heading-color; - font-weight: 500; - font-size: 14px; - } - - .term { - display: table-cell; - padding-bottom: 16px; - color: @heading-color; - // Line-height is 22px IE dom height will calculate error - line-height: 20px; - white-space: nowrap; - - &::after { - position: relative; - top: -0.5px; - margin: 0 8px 0 2px; - content: ':'; - } - } - - .detail { - display: table-cell; - width: 100%; - padding-bottom: 16px; - color: @text-color; - line-height: 20px; - } - - &.small { - // offset the padding-bottom of last row - :global { - .ant-row { - margin-bottom: -8px; - } - } - // fix margin top error of following descriptionList - & + .descriptionList { - :global { - .ant-row { - margin-top: 8px; - } - } - } - .title { - margin-bottom: 12px; - color: @text-color; - } - .term, - .detail { - padding-bottom: 8px; - } - } - - &.large { - .title { - font-size: 16px; - } - } - - &.vertical { - .term { - display: block; - padding-bottom: 8px; - } - - .detail { - display: block; - } - } -} diff --git a/ProfileBasic/src/components/DescriptionList/index.tsx b/ProfileBasic/src/components/DescriptionList/index.tsx deleted file mode 100644 index 24ce8f7a0e0951ebdd1fd1afe78908f68be40fef..0000000000000000000000000000000000000000 --- a/ProfileBasic/src/components/DescriptionList/index.tsx +++ /dev/null @@ -1,3 +0,0 @@ -import DescriptionList from './DescriptionList'; - -export default DescriptionList; diff --git a/ProfileBasic/src/components/DescriptionList/responsive.tsx b/ProfileBasic/src/components/DescriptionList/responsive.tsx deleted file mode 100644 index a5aa73f781e3eccdbae4dffd656e201589575554..0000000000000000000000000000000000000000 --- a/ProfileBasic/src/components/DescriptionList/responsive.tsx +++ /dev/null @@ -1,6 +0,0 @@ -export default { - 1: { xs: 24 }, - 2: { xs: 24, sm: 12 }, - 3: { xs: 24, sm: 12, md: 8 }, - 4: { xs: 24, sm: 12, md: 6 }, -}; diff --git a/ProfileBasic/src/index.tsx b/ProfileBasic/src/index.tsx index 0bca5f69ed61809e7a082e9e3e109cd6bc08c8b4..6a10cabee1d61e0d74af99342c8aa1a2c4b2e6ca 100644 --- a/ProfileBasic/src/index.tsx +++ b/ProfileBasic/src/index.tsx @@ -1,12 +1,10 @@ import React, { Component } from 'react'; import { connect } from 'dva'; -import { Card, Badge, Table, Divider } from 'antd'; -import DescriptionList from './components/DescriptionList'; +import { Card, Badge, Table, Descriptions, Divider } from 'antd'; import { PageHeaderWrapper } from '@ant-design/pro-layout'; import styles from './style.less'; import { BasicProfileDataType, BasicGood } from './data'; import { Dispatch } from 'redux'; -const { Description } = DescriptionList; const progressColumns = [ { @@ -169,20 +167,20 @@ class PAGE_NAME_UPPER_CAMEL_CASE extends Component< return ( - - 1000000000 - 已取货 - 1234123421 - 3214321432 - + + 1000000000 + 已取货 + 1234123421 + 3214321432 + - - 付小小 - 18100000000 - 菜鸟仓储 - 浙江省杭州市西湖区万塘路18号 - - + + 付小小 + 18100000000 + 菜鸟仓储 + 浙江省杭州市西湖区万塘路18号 + +
退货商品
{ const openBrowser = async () => { browser = await puppeteer.launch({ - headless: false, + headless: true, args: [ '--disable-gpu', '--disable-dev-shm-usage', diff --git a/package.json b/package.json index 89465884a804864100410f6c93e5836a5207cb91..94eb83c92af04333f9e5e7acdc04cff00d24df4b 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "private": true, "scripts": { - "dev": "cross-env PAGES_PATH='AccountCenter/src' umi dev", + "dev": "cross-env PAGES_PATH='ProfileAdvanced/src' umi dev", "start": "umi dev", "lint": "npm run lint:ts && npm run lint:style && npm run lint:prettier", "lint-staged": "lint-staged",