fix : 测试字典接口没加token
This commit is contained in:
@@ -6,6 +6,7 @@ import { getToken, removeToken } from "./auth";
|
|||||||
axios.defaults.headers['Content-Type']='application/json'
|
axios.defaults.headers['Content-Type']='application/json'
|
||||||
console.log(import.meta.env.VITE_BASE_URL);
|
console.log(import.meta.env.VITE_BASE_URL);
|
||||||
|
|
||||||
|
|
||||||
const serveice = axios.create({
|
const serveice = axios.create({
|
||||||
baseURL: import.meta.env.VITE_BASE_URL,
|
baseURL: import.meta.env.VITE_BASE_URL,
|
||||||
timeout: 6000
|
timeout: 6000
|
||||||
|
|||||||
Reference in New Issue
Block a user