mirror of
https://github.com/zuiidea/antd-admin
synced 2026-10-28 20:03:57 +00:00
Merge pull request #834 from codeif/master
Rename variable name domin to domain
This commit is contained in:
@@ -18,10 +18,10 @@ const fetch = (options) => {
|
||||
const cloneData = cloneDeep(data)
|
||||
|
||||
try {
|
||||
let domin = ''
|
||||
let domain = ''
|
||||
if (url.match(/[a-zA-z]+:\/\/[^/]*/)) {
|
||||
[domin] = url.match(/[a-zA-z]+:\/\/[^/]*/)
|
||||
url = url.slice(domin.length)
|
||||
[domain] = url.match(/[a-zA-z]+:\/\/[^/]*/)
|
||||
url = url.slice(domain.length)
|
||||
}
|
||||
const match = pathToRegexp.parse(url)
|
||||
url = pathToRegexp.compile(url)(data)
|
||||
@@ -30,7 +30,7 @@ const fetch = (options) => {
|
||||
delete cloneData[item.name]
|
||||
}
|
||||
}
|
||||
url = domin + url
|
||||
url = domain + url
|
||||
} catch (e) {
|
||||
message.error(e.message)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user