I wrote a js file myself in the following format
import axios from "axios"
import env from "../../config/env"
import Vue from "vue"
import router from "../router"
axios.defaults.withCredentials = true
export default {
...
}
then import u from"@ / libs/u.js", in every vue file feels redundant
how to register this variable u directly to the global, you can directly use the method in the js file in vue without import