|
|
@@ -33,7 +33,7 @@ Vue.use(VueClipboard);
|
|
|
|
|
|
let instance = null;
|
|
|
|
|
|
-function render (props = {}) {
|
|
|
+function render(props = {}) {
|
|
|
const { container, routerBase } = props;
|
|
|
// const router = new VueRouter({
|
|
|
// base: window.__POWERED_BY_QIANKUN__ ? routerBase : process.env.BASE_URL,
|
|
|
@@ -54,11 +54,11 @@ if (!window.__POWERED_BY_QIANKUN__) {
|
|
|
render();
|
|
|
}
|
|
|
|
|
|
-export async function bootstrap () {
|
|
|
+export async function bootstrap() {
|
|
|
console.log('[vue] vue app bootstraped');
|
|
|
}
|
|
|
|
|
|
-export async function mount (props) {
|
|
|
+export async function mount(props) {
|
|
|
console.log('[vue] props from main framework', props);
|
|
|
|
|
|
initParentStore(props.store);
|
|
|
@@ -70,7 +70,7 @@ export async function mount (props) {
|
|
|
render(props);
|
|
|
}
|
|
|
|
|
|
-export async function unmount () {
|
|
|
+export async function unmount() {
|
|
|
instance.$destroy();
|
|
|
instance.$el.innerHTML = '';
|
|
|
instance = null;
|