-
Notifications
You must be signed in to change notification settings - Fork 0
/
app.js
47 lines (39 loc) · 968 Bytes
/
app.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
import Vue from 'vue';
import AppLayout from './theme/AppLayout.vue';
// import router from './router';
import { createRouter } from './router';
// import store from './vuex-state';
import { createStore } from './vuex-state';
import './styles/index.scss';
// Vue.config.productionTip = false;
if (typeof window !== 'undefined') {
Vue.config.devtools = true;
}
// const app = new Vue({
// store,
// router,
// // render: (h) => h(AppLayout),
// ...AppLayout
// });
// export { app, router, store };
const createApp = () => {
const router = createRouter();
const store = createStore();
const app = new Vue({
store,
router,
// render: (h) => h(AppLayout),
...AppLayout
});
return { app, router, store };
};
// export function createApp() {
// const app = new Vue({
// store,
// router,
// // render: (h) => h(AppLayout),
// ...AppLayout
// });
// return { app, router, store };
// }
export { createApp };