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