首页登录完成

This commit is contained in:
2020-10-09 16:04:20 +08:00
parent e9a37efe02
commit fb6a526aee
9 changed files with 89 additions and 55 deletions

View File

@@ -1,6 +1,7 @@
import { getValue } from '@/utils/common';
import axios from 'axios'
axios.defaults.baseURL = '/beelink/public/home/';
axios.defaults.headers.common['Authorization'] = 'token';
axios.defaults.headers.common['Authorization'] = "Bearer " + getValue("token");
axios.defaults.headers.post['Content-Type'] = 'application/x-www-form-urlencoded';
export default axios