bugfix
This commit is contained in:
parent
269bdac2f6
commit
a6bd75dbbd
@ -44,6 +44,10 @@ bricks.Toolbar = class extends bricks.Layout {
|
||||
}
|
||||
}
|
||||
async createTools(){
|
||||
if (!this.opts.tools){
|
||||
console.log('error: tools not exists in options');
|
||||
return;
|
||||
}
|
||||
var l = this.opts.tools.length;
|
||||
for (var i=0;i<l; i++){
|
||||
await this.createTool(this.opts.tools[i]);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user