Commit f7e929cd authored by 前端-钟卫鹏's avatar 前端-钟卫鹏

fix: 修改价格策略内跳转链接兼顾demo站菜单配置

parent e0d6e6f9
......@@ -176,7 +176,7 @@ module.exports = {
ssh: JSON.stringify({
user: "root",
// Password optional, prompted if none given
password: "123456",
password: "SsyLingxi@test666",
host: "10.0.0.17",
port: 22,
localRoot: path.resolve('./dist/'),
......
......@@ -35,7 +35,7 @@ const PriceManage: React.FC<{}> = () => {
render: (text: any, record: any) =>
<EyePreview
url={`/memberCenter/commodityAbility/priceManage/priceStrategy/setStrategy/detail?id=${record.id}&preview=1`}
url={`${history.location.pathname}/detail?id=${record.id}&preview=1`}
>
{text}
</EyePreview>
......@@ -166,7 +166,7 @@ const PriceManage: React.FC<{}> = () => {
}
const handleModify = (record: any) => {
history.push(`/memberCenter/commodityAbility/priceManage/priceStrategy/setStrategy/edit?id=${record.id}`)
history.push(`${history.location.pathname}/edit?id=${record.id}`)
}
const handleDelete = (record: any) => {
......@@ -183,7 +183,7 @@ const PriceManage: React.FC<{}> = () => {
<Space>
<Button
type='primary'
onClick={() => history.push('/memberCenter/commodityAbility/priceManage/priceStrategy/setStrategy/add')}
onClick={() => history.push(`${history.location.pathname}/add`)}
>
<PlusOutlined />{intl.formatMessage({ id: 'priceManage.priceStrategy.controllerBtns' })}
</Button>
......
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