src/api/index.js @@ -1,6 +1,8 @@ import axios from "axios"; import { useRoute } from "vue-router"; const route = useRoute(); axios.defaults.headers["Content-Type"] = "application/json;charset=utf-8"; const service = axios.create({