提交 5845577e 编写于 作者: 璃白.'s avatar 璃白. 🌻

fix

上级 ed34d143
...@@ -256,11 +256,16 @@ ...@@ -256,11 +256,16 @@
click: function() {} click: function() {}
} }
]); ]);
document.querySelector("#a").onclick = function() { function test() {
return ee.getVideoList();
}
document.querySelector("#a").onclick = async function() {
console.log(await test());
// ee.disable(); // ee.disable();
ee.getVideoList(list => { // ee.getVideoList(list => {
console.log("list", list); // console.log("list", list);
}); // });
}; };
document.querySelector("#b").onclick = function() { document.querySelector("#b").onclick = function() {
ee.enable(); ee.enable();
......
此差异已折叠。
...@@ -461,8 +461,9 @@ export default { ...@@ -461,8 +461,9 @@ export default {
}); });
}); });
document.body.removeChild(virtualDom); document.body.removeChild(virtualDom);
Promise.all(list).then(res => { return Promise.all(list).then(res => {
callback(res); if (callback) callback(res);
return res;
}); });
}, },
queryUserList(keyWord) { queryUserList(keyWord) {
......
...@@ -146,7 +146,7 @@ function initMdEditor(obj) { ...@@ -146,7 +146,7 @@ function initMdEditor(obj) {
}).$mount(el); }).$mount(el);
this.getVideoList = function(callback) { this.getVideoList = function(callback) {
this.vEl.$children[0].getVideoList(callback); return this.vEl.$children[0].getVideoList(callback);
}; };
this.getValue = function(callback) { this.getValue = function(callback) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册