-
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 4 replies
-
试试把tabAdd调用这一段代码拆出来放到父级页面看看, |
Beta Was this translation helpful? Give feedback.
-
你的 tab 是基于 layui 的 tab 二次封装的,原始 API 能否生效很难说,尝试使用 admin 内部封装的方法打开新 tab。 |
Beta Was this translation helpful? Give feedback.
-
不是。admin 中的 tab 和 layui 的 tab,是两个不同的组件。你用 layui.tab 原始 API 操作经过二次封装的 tab,如果封装后的 tab 组件的行为和原始 tab 有差异,就可能出现问题。这不是 BUG,这是错误的使用方式。
建议至少先去看一看,这是商业产品,核心模块的方法,怎么可能没有文档记录 |
Beta Was this translation helpful? Give feedback.
这个问题最后解决了,就是把处理的相关代码移动到父级frame去,在Admin中调用tabAdd就不会出现问题了。感谢