Vue3.0中已经没有Vue.prototype了。现在使用app.config.globalProperties.$axios=xxx; 这里面的app是: const app =createApp(App);