mirror of
https://github.com/qier222/YesPlayMusic.git
synced 2024-11-22 04:09:16 +08:00
feat(utils/request): make configuring baseURL easier
This commit is contained in:
parent
a4bf6cd577
commit
5bc29f9200
6
src/config/request.js
Normal file
6
src/config/request.js
Normal file
|
@ -0,0 +1,6 @@
|
|||
/**
|
||||
* The base url of your API.
|
||||
*
|
||||
* The API can be found at https://github.com/Binaryify/NeteaseCloudMusicApi
|
||||
*/
|
||||
export const baseURL = "";
|
|
@ -1,7 +1,8 @@
|
|||
import axios from "axios";
|
||||
import { baseURL } from "@/config/request";
|
||||
|
||||
const service = axios.create({
|
||||
baseURL: "/api",
|
||||
baseURL: baseURL,
|
||||
withCredentials: true,
|
||||
timeout: 15000,
|
||||
});
|
||||
|
|
Loading…
Reference in New Issue
Block a user