Update api.js
This commit is contained in:
parent
04958553f1
commit
2cf940e0b9
@ -108,7 +108,7 @@ const urlsConfig = {
|
||||
addServiceRecord: 'addServiceRecord',
|
||||
updateServiceRecord: 'updateServiceRecord',
|
||||
removeServiceRecord: 'removeServiceRecord',
|
||||
sendConsultRejectedMessage: "sendConsultRejectedMessage"
|
||||
// sendConsultRejectedMessage: "sendConsultRejectedMessage"
|
||||
}
|
||||
|
||||
}
|
||||
@ -118,7 +118,7 @@ const urls = Object.keys(urlsConfig).reduce((acc, path) => {
|
||||
keys.forEach((key) => {
|
||||
const data = acc[key];
|
||||
if (data) {
|
||||
throw new Error(`${data[0]}.${data[1]}和${path}.${url}重复了`)
|
||||
throw new Error(`${data[0]}.${data[1]}和${path}.${key}重复了`)
|
||||
}
|
||||
acc[key] = [path, config[key]]
|
||||
return acc
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user