From 03c5255e6aa7dfd72b9b00b3279e7605fb61deaf Mon Sep 17 00:00:00 2001 From: yutent Date: Mon, 13 Mar 2023 18:45:28 +0800 Subject: [PATCH] =?UTF-8?q?=E7=A7=BB=E9=99=A4mounted=E5=9B=9E=E8=B0=83?= =?UTF-8?q?=E5=8F=82=E6=95=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/index.js b/src/index.js index 3d33e1f..d03a891 100644 --- a/src/index.js +++ b/src/index.js @@ -208,7 +208,7 @@ export class Component extends HTMLElement { // 初始化时不触发updated回调 if (!this[__mounted__]) { this[__mounted__] = true - this.mounted(props) + this.mounted() } else { this.updated(props) }