I am using Vue 3 and vue-auth together.
For vue-auth, my project needs to create http/index.ts, containing:
import axios from 'axios';
axios.defaults.baseURL = process.env.VUE_APP_API_URL;
export default (app) => {
app.axios = axios;
app.$http = axios;
app.config.globalProperties.axios = axios;
app.config.globalProperties.$http = axios;
}
but here I have a type error for app:
How can I fix this?
