Commit db6c73cf authored by GuanHua's avatar GuanHua

fix:修复模板装修页面的问题

parent bb37f6f8
...@@ -56,7 +56,8 @@ const TemplateDetail: React.FC<TemplateDetailPropsType> = (props) => { ...@@ -56,7 +56,8 @@ const TemplateDetail: React.FC<TemplateDetailPropsType> = (props) => {
} }
const handleLinkEdit = () => { const handleLinkEdit = () => {
history.push(`/channel/template/edit?id=${detailInfo.id}&template=${detailInfo.fileName}`) window.location.href = `/channel/template/edit?id=${detailInfo.id}&template=${detailInfo.fileName}`
// history.push(`/channel/template/edit?id=${detailInfo.id}&template=${detailInfo.fileName}`)
} }
return ( return (
......
...@@ -198,7 +198,6 @@ const ShopEdit: React.FC<ShopEditPropsType> = (props) => { ...@@ -198,7 +198,6 @@ const ShopEdit: React.FC<ShopEditPropsType> = (props) => {
...InformationConfig, ...InformationConfig,
...FooterConfig ...FooterConfig
} }
setComponentConfigs(config) setComponentConfigs(config)
setLoading(false) setLoading(false)
} }
......
import React, { useState, useEffect } from 'react' import React, { useState, useEffect } from 'react'
import { history } from 'umi';
import { LayoutOutlined, EyeOutlined, PushpinOutlined } from '@ant-design/icons' import { LayoutOutlined, EyeOutlined, PushpinOutlined } from '@ant-design/icons'
import cx from 'classnames' import cx from 'classnames'
import DetailPage from '@/components/DetailPage' import DetailPage from '@/components/DetailPage'
...@@ -57,7 +56,8 @@ const TemplateDetail: React.FC<TemplateDetailPropsType> = (props) => { ...@@ -57,7 +56,8 @@ const TemplateDetail: React.FC<TemplateDetailPropsType> = (props) => {
} }
const handleLinkEdit = () => { const handleLinkEdit = () => {
history.push(`/shop/template/edit?id=${detailInfo.id}&template=${detailInfo.fileName}`) window.location.href = `/shop/template/edit?id=${detailInfo.id}&template=${detailInfo.fileName}`
// history.push(`/shop/template/edit?id=${detailInfo.id}&template=${detailInfo.fileName}`)
} }
return ( return (
......
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