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

fix

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