Commit 7698a7c2 authored by 前端-黄佳鑫's avatar 前端-黄佳鑫
parents 39637abc 026cb0d9
...@@ -79,7 +79,7 @@ const EditPanel = () => { ...@@ -79,7 +79,7 @@ const EditPanel = () => {
return; return;
} }
if (activeKey === null && selectedInfo !== null) { if (activeKey === null && selectedInfo !== null) {
message.info("请先选择一级导航类型"); message.info({content: "请先选择一级导航类型", key: 'first'});
const primaryTabProps = pageConfig[domKey!].props; const primaryTabProps = pageConfig[domKey!].props;
setFormValue({ setFormValue({
primary: primaryTabProps?.id, primary: primaryTabProps?.id,
......
import React, { useEffect, useState } from 'react'; import React, { useEffect, useState } from 'react';
import { Spin, message } from 'antd'; import { Spin, message } from 'antd';
import { BrickProvider, createActions, ModuleTree, useSelector } from '@linkseeks/design-react'; import { BrickProvider, createActions, ModuleTree, ModuleTreeCollapse, useSelector } from '@linkseeks/design-react';
import { history } from 'umi'; import { history } from 'umi';
import styles from './index.less'; import styles from './index.less';
...@@ -139,7 +139,7 @@ const CategoryNavigation = () => { ...@@ -139,7 +139,7 @@ const CategoryNavigation = () => {
}; };
return ( return (
<Spin spinning={false}> <Spin spinning={loading}>
<BrickProvider <BrickProvider
config={configs} config={configs}
warn={(msg: string) => { warn={(msg: string) => {
......
...@@ -138,7 +138,7 @@ const appMallEdit: React.FC<ShopPreviewPropsType> = (props) => { ...@@ -138,7 +138,7 @@ const appMallEdit: React.FC<ShopPreviewPropsType> = (props) => {
} }
break break
case 2: case 2:
const shopDetails = list.filter((item: any) => item.type === type)[0].details || [] const shopDetails = list.filter((item: any) => item.type === type)[0]?.details || []
const shopResList: any[] = [] const shopResList: any[] = []
if (shopDetails && shopDetails.length > 0) { if (shopDetails && shopDetails.length > 0) {
const memberShopInGoodsList: any = [] const memberShopInGoodsList: any = []
...@@ -169,7 +169,7 @@ const appMallEdit: React.FC<ShopPreviewPropsType> = (props) => { ...@@ -169,7 +169,7 @@ const appMallEdit: React.FC<ShopPreviewPropsType> = (props) => {
listRes = shopResList listRes = shopResList
break break
case 3: case 3:
const brandDetails = list.filter((item: any) => item.type === type)[0].details || [] const brandDetails = list.filter((item: any) => item.type === type)[0]?.details || []
let brandDetailsIds: any = [] let brandDetailsIds: any = []
const brandResList: any[] = [] const brandResList: any[] = []
brandDetails.forEach((detailsItem) => { brandDetails.forEach((detailsItem) => {
...@@ -198,7 +198,7 @@ const appMallEdit: React.FC<ShopPreviewPropsType> = (props) => { ...@@ -198,7 +198,7 @@ const appMallEdit: React.FC<ShopPreviewPropsType> = (props) => {
listRes = brandResList listRes = brandResList
break break
case 4: case 4:
const infoIds = list.filter((item: any) => item.type === type)[0].id || [] const infoIds = list.filter((item: any) => item.type === type)[0]?.id || []
idsRes = infoIds idsRes = infoIds
if (idsRes && idsRes.length > 0) { if (idsRes && idsRes.length > 0) {
const param: any = { const param: any = {
......
...@@ -48,6 +48,7 @@ ...@@ -48,6 +48,7 @@
.login-form-box { .login-form-box {
background-color: #fff; background-color: #fff;
height: 447px;
h2 { h2 {
line-height: 2; line-height: 2;
...@@ -142,4 +143,4 @@ ...@@ -142,4 +143,4 @@
75% { 75% {
transform: scale(1.5); transform: scale(1.5);
} }
} }
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment