Skip to content

Commit

Permalink
Update life-cycles.md
Browse files Browse the repository at this point in the history
  • Loading branch information
bailicangdu authored Aug 13, 2022
1 parent 1518b97 commit 7e33226
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions docs/zh-cn/life-cycles.md
Original file line number Diff line number Diff line change
Expand Up @@ -63,19 +63,19 @@ vue中监听方式和普通事件一致。
export default {
methods: {
created () {
console.log('micro-app元素被创建'),
console.log('micro-app元素被创建')
},
beforemount () {
console.log('即将被渲染'),
console.log('即将被渲染')
},
mounted () {
console.log('已经渲染完成'),
console.log('已经渲染完成')
},
unmount () {
console.log('已经卸载'),
console.log('已经卸载')
},
error () {
console.log('渲染出错'),
console.log('渲染出错')
}
}
}
Expand Down

0 comments on commit 7e33226

Please sign in to comment.