Commit 2fa10a6e authored by Bill's avatar Bill

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

parent 079143d4
......@@ -79,7 +79,7 @@ const EditPanel = () => {
return;
}
if (activeKey === null && selectedInfo !== null) {
message.info("请先选择一级导航类型");
message.info({content: "请先选择一级导航类型", key: 'first'});
const primaryTabProps = pageConfig[domKey!].props;
setFormValue({
primary: primaryTabProps?.id,
......
import React, { useEffect, useState } from 'react';
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 styles from './index.less';
......@@ -139,7 +139,7 @@ const CategoryNavigation = () => {
};
return (
<Spin spinning={false}>
<Spin spinning={loading}>
<BrickProvider
config={configs}
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