mirror of
https://github.com/WeBankFinTech/fes.js.git
synced 2025-05-08 03:16:36 +08:00
32 lines
733 B
JavaScript
32 lines
733 B
JavaScript
import PageLoading from '@/components/PageLoading';
|
|
|
|
export const beforeRender = {
|
|
loading: <PageLoading />,
|
|
action() {
|
|
return new Promise((resolve) => {
|
|
setTimeout(() => {
|
|
resolve();
|
|
}, 200);
|
|
});
|
|
}
|
|
};
|
|
|
|
export const qiankun = {
|
|
// 应用加载之前
|
|
async bootstrap(props) {
|
|
console.log('app1 bootstrap', props);
|
|
},
|
|
// 应用 render 之前触发
|
|
async mount(props) {
|
|
console.log('app1 mount', props);
|
|
},
|
|
// 当 props 更新时触发
|
|
async update(props) {
|
|
console.log('app1 update', props);
|
|
},
|
|
// 应用卸载之后触发
|
|
async unmount(props) {
|
|
console.log('app1 unmount', props);
|
|
}
|
|
};
|