From 0bd64cdb66957d78202e96517d52cb100369b5af Mon Sep 17 00:00:00 2001 From: XiaoRuby <3114200645@qq.com> Date: 星期六, 09 九月 2023 14:51:22 +0800 Subject: [PATCH] Crunchy-09/09 --- src/main.js | 8 ++++++-- 1 files changed, 6 insertions(+), 2 deletions(-) diff --git a/src/main.js b/src/main.js index f5b6bda..599b7e9 100644 --- a/src/main.js +++ b/src/main.js @@ -23,7 +23,10 @@ Vue.use(qs); Vue.use(api); -const javaApi = 'http://localhost:8001/' +// const javaApi = 'http://127.0.0.1:8001/' +const javaApi = 'http://127.0.0.1:8001/' + + axios.defaults.baseURL = javaApi axios.defaults.headers.post['Content-Type'] = 'application/x-www-form-urlencoded;charset=UTF-8' @@ -55,6 +58,7 @@ config.data = qs.parse(config.data) // console.log(config.data) } + return config }, function(error) { @@ -117,4 +121,4 @@ el: '#app', router, render: h => h(App) -}); \ No newline at end of file +}); -- Gitblit v1.9.3