#57 修正
This commit is contained in:
@@ -34,13 +34,14 @@ export default () => {
|
||||
}))
|
||||
|
||||
setWikiPage (null)
|
||||
if (!(tags.length))
|
||||
return
|
||||
void (axios.get (`${ API_BASE_URL }/wiki/title/${ encodeURIComponent (tags.join (' ')) }`)
|
||||
.then (res => setWikiPage (toCamel (res.data, { deep: true })))
|
||||
.catch (() => {
|
||||
;
|
||||
}))
|
||||
if (tags.length === 1)
|
||||
{
|
||||
void (axios.get (`${ API_BASE_URL }/wiki/title/${ encodeURIComponent (tags[0]) }`)
|
||||
.then (res => setWikiPage (toCamel (res.data, { deep: true })))
|
||||
.catch (() => {
|
||||
;
|
||||
}))
|
||||
}
|
||||
}, [location.search])
|
||||
|
||||
return (
|
||||
|
||||
Reference in New Issue
Block a user