From e1e826565abaad1fe49389d8ad2eb7f7fdacc28a Mon Sep 17 00:00:00 2001 From: zmc <zmc_li@foxmail.com> Date: 星期二, 05 九月 2023 18:31:19 +0800 Subject: [PATCH] 接口 --- src/api/index.js | 3 ++- src/main.ts | 4 ++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/src/api/index.js b/src/api/index.js index aff2f7b..14ebcd8 100644 --- a/src/api/index.js +++ b/src/api/index.js @@ -3,7 +3,8 @@ // const url = 'http://47.100.191.150:9031/'; // const url = 'http://192.168.1.4:8081/'; -const url = 'http://localhost:8081/'; +// const url = 'http://localhost:8081/'; +const url = 'http://114.215.109.124:8803/'; //椋炵窘鐩戠 const $http = axios.create({ diff --git a/src/main.ts b/src/main.ts index b6f4335..d913468 100644 --- a/src/main.ts +++ b/src/main.ts @@ -34,9 +34,9 @@ next() } }) - // axios.defaults.baseURL = 'http://192.168.1.4:8081' -axios.defaults.baseURL = 'http://localhost:8081' +// axios.defaults.baseURL = 'http://localhost:8081' +axios.defaults.baseURL = 'http://114.215.109.124:8803' app.config.globalProperties.$http = axios // app.use(pinia) -- Gitblit v1.9.3