修复了无限刷新和未登录设置语言

This commit is contained in:
2020-11-09 16:59:29 +08:00
parent 3ece8985ca
commit 9c24b82cf2
6 changed files with 20 additions and 9 deletions

View File

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