mirror of
https://github.com/jumpserver/lina.git
synced 2025-09-19 01:11:07 +00:00
[Bugfix] 修复拼写错误
This commit is contained in:
@@ -96,8 +96,8 @@ export default {
|
|||||||
cleanedActions() {
|
cleanedActions() {
|
||||||
let actions = [...this.defaultActions, ...this.extraActions]
|
let actions = [...this.defaultActions, ...this.extraActions]
|
||||||
actions = actions.map((v) => {
|
actions = actions.map((v) => {
|
||||||
v.has = this.cleanAction(v, 'has')
|
v.has = this.cleanBoolean(v, 'has')
|
||||||
v.can = this.cleanAction(v, 'can')
|
v.can = this.cleanBoolean(v, 'can')
|
||||||
v.callback = this.cleanCallback(v)
|
v.callback = this.cleanCallback(v)
|
||||||
return v
|
return v
|
||||||
})
|
})
|
||||||
@@ -111,12 +111,12 @@ export default {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
cleanAction(item, attr) {
|
cleanBoolean(item, attr) {
|
||||||
const ok = item[attr]
|
const ok = item[attr]
|
||||||
if (!ok || typeof ok !== 'function') {
|
if (!ok || typeof ok !== 'function') {
|
||||||
return item
|
return item
|
||||||
}
|
}
|
||||||
item.ok = function() {
|
item[attr] = function() {
|
||||||
return ok(this.row, this.cellValue)
|
return ok(this.row, this.cellValue)
|
||||||
}
|
}
|
||||||
return item
|
return item
|
||||||
|
@@ -42,7 +42,8 @@ export default {
|
|||||||
name: 'activeSelected',
|
name: 'activeSelected',
|
||||||
title: this.$tc('Active selected')
|
title: this.$tc('Active selected')
|
||||||
}
|
}
|
||||||
]
|
],
|
||||||
|
hasCreate: false
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user