经过4天的努力总算把 两个模块开发出来了,经过一晚上的在云服务器的配置,总算可以发不了哈哈

This commit is contained in:
simple321vip
2022-04-05 23:34:16 +08:00
parent 5c78d43302
commit 1a74970092
11 changed files with 308 additions and 72 deletions
+6 -8
View File
@@ -2,20 +2,18 @@ import axios from 'axios'
const service = axios.create(
{
baseURL: 'http://localhost:8081',
// baseURL: 'http://localhost:8081',
baseURL: 'http://49.233.4.79:8081',
timeout: 5000
}
)
// service.interceptors.request.use(
// config => {
// if (true) {
// config.headers['Authorization'] = 'Bearer' + getToken('user-token')
// }
// return config
// // if (true) {
// // config.headers['Authorization'] = 'Bearer' + getToken('user-token')
// // }
// // return config
// },
// error => {
// console.log(error)