Use $root var for appSettings because vue.prototype vars are not reactive

This commit is contained in:
Bubka
2020-03-23 17:25:53 +01:00
parent 1368f2eba0
commit 0baf57b2a2
5 changed files with 11 additions and 10 deletions

7
resources/js/app.js vendored
View File

@ -8,11 +8,12 @@ import App from './components/App'
import './components'
Vue.prototype.$appSettings = appSettings
Vue.prototype.$appVersion = appVersion
const app = new Vue({
el: '#app',
data: {
appSettings: window.appSettings,
appVersion: window.appVersion
},
components: { App },
i18n,
router,