From ae96836baa0389020f7e4e1ef57d02de3c418d54 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=8E=E6=88=90=E5=85=83?= <30282501+Allihol@users.noreply.github.com> Date: Fri, 14 Apr 2023 14:39:19 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20router=20=E5=87=86=E5=A4=87=E5=B0=B1?= =?UTF-8?q?=E7=BB=AA=E5=90=8E=E5=86=8D=E6=8C=82=E8=BD=BD=20(#71)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/main.ts b/src/main.ts index 6bdab18..de94be6 100644 --- a/src/main.ts +++ b/src/main.ts @@ -26,4 +26,7 @@ loadSvg(app) /** 加载自定义指令 */ loadDirectives(app) -app.use(store).use(router).mount("#app") +app.use(store).use(router) +router.isReady().then(() => { + app.mount("#app") +})