Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
J
jinfa-admin
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
linweijiong
jinfa-admin
Commits
1c5732a7
Commit
1c5732a7
authored
Feb 10, 2022
by
Bill
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: 修改装修跳转链接
parent
4ae3cde0
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletion
+4
-1
index.tsx
...nagement/activePage/fixtures/components/Toolbar/index.tsx
+4
-1
No files found.
src/pages/marketingManage/marketing/marketingActivitiesManagement/activePage/fixtures/components/Toolbar/index.tsx
View file @
1c5732a7
...
...
@@ -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
}
`
)
},
});
};
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment