提交 | 用户 | 时间
|
e7305d
|
1 |
// 如果使用wujie-vue |
H |
2 |
// import WujieVue from 'wujie-vue3'; |
|
3 |
// const { bus } = WujieVue; |
|
4 |
|
|
5 |
const lifecycles = { |
|
6 |
beforeLoad(appWindow: any) { |
|
7 |
// 第一次子应用的时候执行 |
|
8 |
// 打开加载动画 |
|
9 |
}, |
|
10 |
beforeMount() { |
|
11 |
// console.log('beforeMount()-----------------'); |
|
12 |
}, |
|
13 |
afterMount(appWindow: any) { |
|
14 |
console.log(appWindow) |
|
15 |
// 自应用第一次挂载到页面上之后执行(后续会缓存,不会执行) |
|
16 |
// 关闭加载动画 |
|
17 |
}, |
|
18 |
beforeUnmount(appWindow: any) { |
|
19 |
// console.log('beforeUnmount()-----------------'); |
|
20 |
}, |
|
21 |
afterUnmount(appWindow: any) { |
|
22 |
// console.log('afterUnmount()-----------------'); |
|
23 |
}, |
|
24 |
activated(appWindow: any) { |
|
25 |
// console.log(appWindow) |
|
26 |
}, |
|
27 |
deactivated(appWindow: any) { |
|
28 |
// console.log('deactivated()-------------------------'); |
|
29 |
} |
|
30 |
} |
|
31 |
|
|
32 |
export default lifecycles |