mirror of
https://github.com/Bubka/2FAuth.git
synced 2025-08-09 05:54:34 +02:00
Use $root var for appSettings because vue.prototype vars are not reactive
This commit is contained in:
7
resources/js/app.js
vendored
7
resources/js/app.js
vendored
@ -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,
|
||||
|
Reference in New Issue
Block a user