mirror of
https://github.com/ElemeFE/element.git
synced 2025-12-13 11:34:02 +08:00
remove unnecessary declaration
This commit is contained in:
@@ -31,12 +31,10 @@ exports.destroyVM = function(vm) {
|
||||
* @return {Object} vm
|
||||
*/
|
||||
exports.createVue = function(Compo, mounted = false) {
|
||||
const elm = createElm();
|
||||
|
||||
if (Object.prototype.toString.call(Compo) === '[object String]') {
|
||||
Compo = { template: Compo };
|
||||
}
|
||||
return new Vue(Compo).$mount(mounted === false ? null : elm);
|
||||
return new Vue(Compo).$mount(mounted === false ? null : createElm());
|
||||
};
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user