Commit 5234a58e authored by Nicholas Lee's avatar Nicholas Lee Committed by cinwell.li

remove unnecessary declaration

parent 379c3a5d
...@@ -31,12 +31,10 @@ exports.destroyVM = function(vm) { ...@@ -31,12 +31,10 @@ exports.destroyVM = function(vm) {
* @return {Object} vm * @return {Object} vm
*/ */
exports.createVue = function(Compo, mounted = false) { exports.createVue = function(Compo, mounted = false) {
const elm = createElm();
if (Object.prototype.toString.call(Compo) === '[object String]') { if (Object.prototype.toString.call(Compo) === '[object String]') {
Compo = { template: Compo }; Compo = { template: Compo };
} }
return new Vue(Compo).$mount(mounted === false ? null : elm); return new Vue(Compo).$mount(mounted === false ? null : createElm());
}; };
/** /**
......
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