安装命令
npm install --save axios vue-axios
注册使用
import { createApp } from 'vue'
import App from './App.vue'
import axios from "axios";
import VueAxios from 'vue-axios'
const app = createApp(App)
app.use(VueAxios,axios).mount('#app')
npm install --save axios vue-axios
import { createApp } from 'vue'
import App from './App.vue'
import axios from "axios";
import VueAxios from 'vue-axios'
const app = createApp(App)
app.use(VueAxios,axios).mount('#app')