Commit 1fdeccd1 authored by Bill's avatar Bill

fix: 修改品类导航页bug

parent c5675d3f
......@@ -58,6 +58,9 @@ export function useFilterSameOption() {
}
childNodes.forEach(_son => {
const sonData = pageConfig[_son];
if (!sonData) {
return;
}
const tempData = keyFunc[type]?.(sonData.props);
result[name].push(tempData.id);
});
......
......@@ -67,7 +67,6 @@ const EditPanel = () => {
message.info("请先选择一级导航类型");
}
const primaryTabProps = pageConfig[domKey!].props;
console.warn("fukc you", primaryTabProps)
setFormValue({
primary: primaryTabProps?.id,
title: primaryTabProps?.name,
......@@ -79,7 +78,6 @@ const EditPanel = () => {
const componentType: keyof typeof ComponentSchema = (selectedInfo as any)?.otherProps?.type;
const targetSchema = ComponentSchema[componentType] || null;
console.warn(selectedInfo, componentType)
if (targetSchema) {
/** 这里需要处理一下FormVlaue */
const tempFormValue = {
......@@ -350,7 +348,7 @@ const EditPanel = () => {
</div>
<div className={styles.footer}>
<Space>
<Button>取消</Button>
<Button onClick={() => setVisible(false)}>取消</Button>
<Button type="primary" onClick={() => formActions.submit()}>确认</Button>
</Space>
</div>
......
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