Skip to content

Commit

Permalink
style: createRecord only accept a single param (#1725)
Browse files Browse the repository at this point in the history
  • Loading branch information
Amour1688 committed Sep 23, 2020
1 parent 9ae4d57 commit 105186e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/hotReload.ts
Expand Up @@ -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) : ''}
Expand Down

0 comments on commit 105186e

Please sign in to comment.