mirror of
https://gitee.com/layui/layui.git
synced 2025-04-05 17:38:02 +08:00
优化 code 的 addTools 属性生效条件
This commit is contained in:
parent
4838c773a9
commit
86454a3acc
@ -341,8 +341,8 @@ layui.define(['lay', 'util', 'element', 'form'], function(exports){
|
||||
});
|
||||
|
||||
// 增加工具栏
|
||||
if (options.addTools) {
|
||||
options.tools = [].concat(options.tools || [], options.addTools);
|
||||
if (options.addTools && options.tools) {
|
||||
options.tools = [].concat(options.tools, options.addTools);
|
||||
}
|
||||
|
||||
// 渲染工具栏
|
||||
|
Loading…
Reference in New Issue
Block a user