移除mounted回调参数

pull/1/head
yutent 2023-03-13 18:45:28 +08:00
parent 65b9dd6c4d
commit 03c5255e6a
1 changed files with 1 additions and 1 deletions

View File

@ -208,7 +208,7 @@ export class Component extends HTMLElement {
// 初始化时不触发updated回调 // 初始化时不触发updated回调
if (!this[__mounted__]) { if (!this[__mounted__]) {
this[__mounted__] = true this[__mounted__] = true
this.mounted(props) this.mounted()
} else { } else {
this.updated(props) this.updated(props)
} }