mirror of
https://github.com/kuaifan/dootask.git
synced 2026-02-19 06:53:53 +00:00
feat:微应用调整
This commit is contained in:
parent
b8eab81ad2
commit
46967f1e00
@ -10,7 +10,6 @@
|
||||
inline
|
||||
destroy
|
||||
disableSandbox
|
||||
keep-alive
|
||||
:data='appData'
|
||||
@created='handleCreate'
|
||||
@beforemount='handleBeforeMount'
|
||||
@ -72,12 +71,9 @@ export default {
|
||||
|
||||
methods: {
|
||||
handleCreate(e) {
|
||||
console.log("子应用创建了",e)
|
||||
// console.log("子应用创建了",e)
|
||||
},
|
||||
handleBeforeMount(e) {
|
||||
// console.log("子应用即将被渲染",e)
|
||||
},
|
||||
handleMount(e) {
|
||||
this.appData = {
|
||||
type: 'init',
|
||||
vues:{
|
||||
@ -94,10 +90,14 @@ export default {
|
||||
},
|
||||
userInfo: this.userInfo,
|
||||
}
|
||||
},
|
||||
handleMount(e) {
|
||||
|
||||
},
|
||||
handleUnmount(e) {
|
||||
this.loading = true;
|
||||
console.log("子应用卸载了",e)
|
||||
window.dispatchEvent(new Event('apps-unmount'));
|
||||
// console.log("子应用卸载了",e)
|
||||
},
|
||||
handleError(e) {
|
||||
// console.log("子应用加载出错了",e.detail.error)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user