bugfix
This commit is contained in:
@@ -66,10 +66,8 @@ export default {
|
||||
const optIsObj = typeof opt === 'object'
|
||||
|
||||
if (optIsObj) {
|
||||
// 可能需要验证权限,如 opt.permission 选项
|
||||
// 注意:为空字符串或null/undefined都会不验证权限
|
||||
if (!opt.permission || (opt.permission && this.$hasPermission(opt.permission))) {
|
||||
// console.log('[operation component]: ', opt.permission, this.$hasPermission(opt.permission))
|
||||
btns.push(
|
||||
h('el-button',
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user