From 37dcc51e05680993424c7a2d3fa70f84805f6d7f Mon Sep 17 00:00:00 2001 From: yutent Date: Thu, 9 May 2024 16:47:26 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E8=B7=AF=E7=94=B1=E4=B8=8D?= =?UTF-8?q?=E5=AD=98=E5=9C=A8=E6=97=B6=E7=9A=84=E6=8A=A5=E9=94=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- package.json | 2 +- src/router/router-engine.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index 4744f89..ad90aec 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "wkitd", - "version": "1.3.7", + "version": "1.3.8", "type": "module", "main": "dist/index.js", "files": [ diff --git a/src/router/router-engine.js b/src/router/router-engine.js index 59d4fce..eb94fbf 100644 --- a/src/router/router-engine.js +++ b/src/router/router-engine.js @@ -156,7 +156,7 @@ class Router { $view.current = route.name this.#route = route - if (typeof table.component === 'function') { + if (table && typeof table.component === 'function') { if (!customElements.get(route.name)) { table.component() delete table.component //避免多次请求