Commit 1c5732a7 authored by Bill's avatar Bill

fix: 修改装修跳转链接

parent 4ae3cde0
......@@ -5,6 +5,7 @@ import { Modal } from 'antd';
import styles from './index.less';
import { changeProps, STATE_PROPS, useSelector } from '@linkseeks/design-react';
import Color from './color';
import { usePageStatus } from '@/hooks/usePageStatus';
interface Iprops {
extra?: React.ReactNode,
......@@ -18,13 +19,15 @@ type SettingPanelType = {
const Toolbar: React.FC<Iprops> = (props: Iprops) => {
const { pageConfig } = useSelector<SettingPanelType, STATE_PROPS>(['pageConfig']);
const { id } = usePageStatus();
const color = pageConfig?.[0]?.props?.backgroundColor;
const { title, extra } = props;
const goback =() => {
Modal.confirm({
title: '确认离开装修页?',
onOk: () => {
history.goBack();
// history.goBack();
history.push(`/marketingManage/marketing/activitiesManagement/edit?id=${id}`)
},
});
};
......
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