So erstellen Sie eine globale Variable im VUE
// in main =.js
Vue.prototype.$appName = 'My App'
////in components
console.log(this.$appName)
perada
// in main =.js
Vue.prototype.$appName = 'My App'
////in components
console.log(this.$appName)
// on vue 3
const app = Vue.createApp({})
app.config.globalProperties.$myGlobalVariable = globalVariable
// on vue 2
Vue.prototype.$myGlobalVariable = globalVariable
import Axios from 'axios'
// set global axios like this
Vue.prototype.$axios = Axios;
// call axios like this
this.$axios.get('https://jsonplaceholder.typicode.com/todos/1')