Commit 06c66c7b authored by huanglu's avatar huanglu

fix: api base url

parent e22bfec1
...@@ -84,7 +84,7 @@ export default { ...@@ -84,7 +84,7 @@ export default {
}).catch(err => { }).catch(err => {
this.$message.error(err.msg || '登录失败,5秒后跳转到登录页') this.$message.error(err.msg || '登录失败,5秒后跳转到登录页')
setTimeout(() => { setTimeout(() => {
// window.location = '/signin/#/logout' window.location = '/signin/#/logout'
}, 5000) }, 5000)
}).finally(() => { }).finally(() => {
loading.close() loading.close()
...@@ -96,7 +96,7 @@ export default { ...@@ -96,7 +96,7 @@ export default {
message: '检测到您还未登录,即将为你跳转到登录页面!' message: '检测到您还未登录,即将为你跳转到登录页面!'
}) })
setTimeout(() => { setTimeout(() => {
// window.location = '/signin/#/logout' window.location = '/signin/#/logout'
}, 3000) }, 3000)
} }
} }
......
import axios from 'axios'; import axios from 'axios';
const http = axios.create({ const http = axios.create({
baseUrl: process.env.VUE_APP_API_HOST || process.env.BASE_URL baseUrl: '/'
}) })
http.defaults.timeout = 10000; http.defaults.timeout = 10000;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment