Make configuring baseURL easier and make the errors friendly (#9)
* feat(utils/request): make configuring baseURL easier * docs(config/request): update the corresponding changes 5bc29f9200327de1d8aa23ab383bbd7f115db7ee * feat(utils/request): make the errors friendly I replaced the ugly if-statement with Map, and I also make the message user-friendly since this project is written for users, not only for developers. And also, I removed the useless "alert", it is useless and annoying for users.master
parent
c860745bfe
commit
bce09351cd
@ -0,0 +1,6 @@
|
||||
/**
|
||||
* The base url of your API.
|
||||
*
|
||||
* The API can be found at https://github.com/Binaryify/NeteaseCloudMusicApi
|
||||
*/
|
||||
export const baseURL = "";
|
Loading…
Reference in new issue