Commit 2347b651 authored by 前端-黄佳鑫's avatar 前端-黄佳鑫

🐞 fix: 修复采购门户

parent 32e74e70
......@@ -193,7 +193,7 @@ export default AddQuotes
// /** 提交的接口 */
// fetchRequest?: () => Promise<unknown>,
// /** 本地缓存的名称 */
// spam?: string,
// spam?: string | boolean,
// /** 标题 */
// title?: string,
// }
......
......@@ -10,4 +10,4 @@ const EditQuote: React.FC<{}> = () => {
/>
)
}
export default EditQuote;
\ No newline at end of file
export default EditQuote;
......@@ -385,10 +385,22 @@ const PurchasInfo: React.FC<PurchasInfoPropsType> = (props) => {
setFormIsHalfFilledOut(true)
}
const checkUrl = (url) => {
if (url && typeof url === 'string') {
if (url.indexOf('/') > -1) {
return url.replace('/', '').trim()
} else {
return `${url}`.trim()
}
}
}
/** 获取店铺链接 */
const handleMallSelectChange = (val, option) => {
setDoor(option.children);
setResUrl(`${siteUrl}${option.url}`)
if (option.url) {
setResUrl(`${siteUrl}/${checkUrl(option.url)}`)
}
}
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