config(core): 更新API服务器地址配置
- 将小说下载接口地址从 http://47.236.5.114:5000/api/book/download 更新为 http://43.159.32.210:5000/api/book/download - 将默认API基础地址从 http://47.236.5.114:5000/api/ 更新为 http://43.159.32.210:5000/api/
This commit is contained in:
@@ -23,7 +23,7 @@ interface RequestCache {
|
||||
axios.defaults.headers["Content-Type"] = "application/json; charset=UTF-8"
|
||||
|
||||
const service: AxiosInstance = axios.create({
|
||||
baseURL: "http://47.236.5.114:5000/api/",
|
||||
baseURL: "http://43.159.32.210:5000/api/",
|
||||
// baseURL: "/api",
|
||||
timeout: 30000,
|
||||
})
|
||||
|
||||
@@ -52,7 +52,7 @@ function closeAlert(id: number) {
|
||||
const handleClick = async (btnObj: BtnItem) => {
|
||||
if (btnObj.title === "断开") return
|
||||
if (btnObj.title === "小说下载") {
|
||||
connect("http://47.236.5.114:5000/api/book/download")
|
||||
connect("http://43.159.32.210:5000/api/book/download")
|
||||
return
|
||||
}
|
||||
loading.value = true
|
||||
|
||||
Reference in New Issue
Block a user