-
Notifications
You must be signed in to change notification settings - Fork 28
/
main.js
59 lines (53 loc) · 1.11 KB
/
main.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
48
49
50
51
52
53
54
55
56
57
58
59
import Vue from 'vue'
import App from './App.vue'
import Router from "vue-router";
import Home from './components/Home.vue'
import About from './components/About.vue'
import BootstrapVue from 'bootstrap-vue'
import 'bootstrap/dist/css/bootstrap.css'
import 'bootstrap-vue/dist/bootstrap-vue.css'
import '../assets/styles/style.scss';
import singleSpaVue from 'single-spa-vue';
import ParcelPage from './components/ParcelPage.vue'
Vue.config.productionTip = false
Vue.use(Router);
Vue.use(BootstrapVue)
export var mountParcel;
const router = new Router({
routes: [
{
path: "/",
name: "home",
component: Home
},
{
path: "/about",
name: "about",
component: About
},
{
path: "/parcel_page",
name: "parcelPage",
component: ParcelPage
}
]
});
const singleSpa = singleSpaVue({
Vue,
appOptions: {
render: (h) => h(App),
router
}
});
export const bootstrap = [
(props) => {
mountParcel = props.mountParcel
return Promise.resolve()
}
];
export const mount = [
singleSpa.mount
];
export const unmount = [
singleSpa.unmount
];