app.js
484 Bytes
import Vue from 'vue';
import App from './app.vue';
import {createRouter} from './router';
import {createStore} from './store';
import titleMixin from './mixins/title';
import pluginCore from './plugins/core';
Vue.use(pluginCore);
Vue.mixin(titleMixin);
export function createApp() {
const router = createRouter();
const store = createStore();
const app = new Vue({
router,
store,
render: h => h(App)
});
return {app, router, store};
}