如何在vue3中的mian.js添加全局jsonp?
mian.js文件内容
import {createApp} from 'vue'import App from './App.vue'
import router from './router'
import store from './store'
import installElementPlus from './plugins/element'
import './assets/css/icon.css'
import axios from 'axios';
const app = createApp(App)
installElementPlus(app)
app.config.globalProperties.$axios = axios;
app
.use(store)
.use(router)
.mount('#app')
以上是 如何在vue3中的mian.js添加全局jsonp? 的全部内容, 来源链接: utcz.com/p/935472.html