mirror of
https://github.com/PanJiaChen/vue-element-admin.git
synced 2025-08-11 05:11:59 +08:00
parent
efe5f49e9e
commit
b45619fa74
@ -156,6 +156,13 @@ export default {
|
||||
withOutColumnNames,
|
||||
isChangedAllValues: true
|
||||
})
|
||||
},
|
||||
addAction(action) {
|
||||
this.$store.dispatch('addAction', {
|
||||
name: action.name,
|
||||
action: action.action,
|
||||
containerUuid: this.metadata.containerUuid
|
||||
})
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -68,6 +68,9 @@ const contextMenu = {
|
||||
references
|
||||
})
|
||||
},
|
||||
addAction({ state }, newAction) {
|
||||
newAction.push(state.contextMenu.actions)
|
||||
},
|
||||
/**
|
||||
* TODO: Verify tableName params to change in constant
|
||||
* @param {number} recordId
|
||||
|
Loading…
x
Reference in New Issue
Block a user