From 105186ebbd2d68cc365840993d68a1d842f8dd1b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=A4=A9=E6=B3=BD?= <31695475+Amour1688@users.noreply.github.com> Date: Wed, 23 Sep 2020 14:29:43 +0800 Subject: [PATCH] style: createRecord only accept a single param (#1725) --- src/hotReload.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/hotReload.ts b/src/hotReload.ts index d29883b20..284f450b4 100644 --- a/src/hotReload.ts +++ b/src/hotReload.ts @@ -10,7 +10,7 @@ if (module.hot) { script.__hmrId = "${id}" const api = __VUE_HMR_RUNTIME__ module.hot.accept() - if (!api.createRecord('${id}', script)) { + if (!api.createRecord('${id}')) { api.reload('${id}', script) } ${templateRequest ? genTemplateHotReloadCode(id, templateRequest) : ''}