mirror of
https://github.com/MrUnknownDE/panel.git
synced 2026-04-18 22:33:44 +02:00
Base attempt at using vuex to handle logins
This commit is contained in:
@@ -8,16 +8,17 @@ import { Ziggy } from './helpers/ziggy';
|
||||
import Locales from './../../../resources/lang/locales';
|
||||
import { flash } from './mixins/flash';
|
||||
import { routes } from './routes';
|
||||
import { storeData } from './store';
|
||||
import storeData from './store/index.js';
|
||||
|
||||
window.events = new Vue;
|
||||
window.Ziggy = Ziggy;
|
||||
|
||||
Vue.config.productionTip = false;
|
||||
Vue.use(Vuex);
|
||||
|
||||
const store = new Vuex.Store(storeData);
|
||||
const route = require('./../../../vendor/tightenco/ziggy/src/js/route').default;
|
||||
|
||||
Vue.config.productionTip = false;
|
||||
Vue.mixin({ methods: { route } });
|
||||
Vue.mixin(flash);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user