Commit 6a05115d authored by X.L's avatar X.L Committed by Evan You

fix: use "api.isRecorded" instead of "module.hot.data" (#1569)

parent c359a38d
......@@ -19,7 +19,7 @@ if (module.hot) {
api.install(require('vue'))
if (api.compatible) {
module.hot.accept()
if (!module.hot.data) {
if (!api.isRecorded('${id}')) {
api.createRecord('${id}', component.options)
} else {
api.${functional ? 'rerender' : 'reload'}('${id}', component.options)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment