1
0
mirror of https://github.com/PanJiaChen/vue-element-admin.git synced 2025-09-25 15:00:00 +08:00

add validation for private access records (#195)

This commit is contained in:
Leonel Matos 2019-12-06 00:33:02 -04:00 committed by Yamel Senih
parent 3b5f0816a9
commit 7372a21308

View File

@ -275,15 +275,17 @@ export const contextMixin = {
},
generateContextMenu() {
this.metadataMenu = this.getterContextMenu
this.$store.dispatch('getPrivateAccessFromServer', {
tableName: this.$route.params.tableName,
recordId: this.$route.params.recordId
})
.then(response => {
this.$nextTick(() => {
this.validatePrivateAccess(response)
})
if (this.panelType === 'window') {
this.$store.dispatch('getPrivateAccessFromServer', {
tableName: this.$route.params.tableName,
recordId: this.$route.params.recordId
})
.then(response => {
this.$nextTick(() => {
this.validatePrivateAccess(response)
})
})
}
this.actions = this.metadataMenu.actions
if (this.actions && this.actions.length) {