Commit 2fa10a6e authored by Bill's avatar Bill

fix: 修改品类导航页多次提示bug

parent 079143d4
...@@ -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) => {
......
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