Commit a814667a authored by GuanHua's avatar GuanHua

fix: 模板装修链接修改

parent 58a1e8b3
......@@ -77,7 +77,7 @@ const TemplateDetail: React.FC<TemplateDetailPropsType> = (props) => {
}
PublicApi.postTemplateWebPageTemplateWebShelfTemplate(param).then(res => {
fetchDetail()
resolve()
resolve(true)
})
})
}
......@@ -86,21 +86,21 @@ const TemplateDetail: React.FC<TemplateDetailPropsType> = (props) => {
switch (type) {
case "mall":
if (detailInfo?.environment === 1) {
window.location.href = `/mall/template/preview?id=${id}&template=${detailInfo?.fileName}`
window.location.href = `/pageCustomized/mall/template/preview?id=${id}&template=${detailInfo?.fileName}`
} else {
message.info(`暂仅支持web环境模板预览`)
}
break
case "shop":
if (detailInfo?.environment === 1) {
window.location.href = `/shop/template/preview?template=${detailInfo?.fileName}`
window.location.href = `/pageCustomized/shop/template/preview?template=${detailInfo?.fileName}`
} else {
message.info(`暂仅支持web环境模板预览`)
}
break
case "channel":
if (detailInfo?.environment === 1) {
window.location.href = `/channel/template/preview?template=${detailInfo?.fileName}`
window.location.href = `/pageCustomized/channel/template/preview?template=${detailInfo?.fileName}`
} else {
message.info(`暂仅支持web环境模板预览`)
}
......@@ -152,10 +152,10 @@ const TemplateDetail: React.FC<TemplateDetailPropsType> = (props) => {
<Fragment>
<div className={cx(styles.btn, styles.renovation)} onClick={() => {
if (detailInfo?.environment === 1) {
window.location.href = `/mall/template/edit?id=${id}&template=${detailInfo?.fileName}`
window.location.href = `/pageCustomized/mall/template/edit?id=${id}&template=${detailInfo?.fileName}`
} else {
// message.info(`暂仅支持web环境模板装修`)
window.location.href = `/mobile/template/edit?id=${id}&template=${detailInfo?.fileName}`
window.location.href = `/pageCustomized/mobile/template/edit?id=${id}&template=${detailInfo?.fileName}`
}
}} >
<LayoutOutlined />
......
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