Commit 5b1e39d9 by crushh

udpate: dist

parent 81da83fd
......@@ -59,6 +59,7 @@ export default {
this.saveUserId();
this.changeTab();
this.$store.dispatch('getIsShowSelfData'); // 展示是否显示 '仅看本人' btn 和列表展示创建人
console.log(this.$buttonCode);
}
};
</script>
......
......@@ -37,29 +37,35 @@ Vue.prototype.$tips = function({ message = '提示', type = 'success' }) {
let instance = null;
function render(props = {}) {
const { container } = props;
instance = new Vue({
router,
store,
render: h => h(App)
}).$mount(container ? container.querySelector('#app') : '#app');
}
// 独立运行时
if (!window.__POWERED_BY_QIANKUN__) {
console.log('独立运行');
limit({
createApp() {
window.getLimit(router, 'marketing', '/marketing/').then(() => {
instance = new Vue({
router,
store,
render: h => h(App)
}).$mount(container ? container.querySelector('#app') : '#app');
render();
});
}
});
}
// 独立运行时
if (!window.__POWERED_BY_QIANKUN__) {
console.log('独立运行');
render();
}
export async function bootstrap() {
console.log('[vue] vue app bootstraped');
}
export async function mount(props) {
render();
limit({
createApp() {
window.getLimit(router, 'marketing', '/marketing/').then(() => {
render();
});
}
});
}
export async function unmount() {
instance.$destroy();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment