fix 修复填写的pid不能包含/的问题
All checks were successful
Build image / build (push) Successful in 33s

This commit is contained in:
timerzz 2024-12-02 14:11:29 +08:00
parent 1b14577ffb
commit 4316a0bf36
2 changed files with 4 additions and 4 deletions

View File

@ -47,13 +47,13 @@ export const FetchProviderArticlePrice = (providerArticle)=>{
}
export const FetchProviderArticleAts = (providerArticle)=>{
return provider.post(`/${providerArticle.providerId}/ats/fetch/${providerArticle.skuID}`)
return provider.post(`/${providerArticle.providerId}/ats/fetch/${encodeURIComponent(providerArticle.skuID)}`)
}
export const GetProviderArticleAts = (providerId, pid)=>{
return provider.get(`/${providerId}/ats/${pid}`)
return provider.get(`/${providerId}/ats/${encodeURIComponent(pid)}`)
}
export const FetchProviderArticleDetail = (providerId, pid)=>{
return provider.post(`/${providerId}/detail/fetch/${pid}`)
return provider.post(`/${providerId}/detail/fetch/${encodeURIComponent(pid)}`)
}

View File

@ -60,7 +60,7 @@ const handleOk = ()=>{
message.error(res.msg)
}
}).catch(err => {
message.error("添加失败")
message.error("查询失败")
console.log(err)
}).finally(()=>{
confirmLoading.value = false