This commit is contained in:
luyuan 2020-11-03 14:56:34 +08:00
parent f567cac0b6
commit 817a67b1ca
Signed by: theluyuan
GPG Key ID: A7972FD973317FF3

View File

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