diff --git a/modules/Permissions/views/permissions/index.vue b/modules/Permissions/views/permissions/index.vue index 2e4385f..8ab9b21 100644 --- a/modules/Permissions/views/permissions/index.vue +++ b/modules/Permissions/views/permissions/index.vue @@ -21,7 +21,7 @@ @@ -73,11 +73,18 @@ onMounted(() => { }) const actionLoading = ref(false) +const generateId = ref(0) const actionGenerate = async (id: number) => { - actionLoading.value = true - http.post(api, { parent_id: id, actions: true }).then(r => { - search() - actionLoading.value = false - }) + generateId.value = id + http + .post(api, { parent_id: id, actions: true }) + .then(r => { + search() + generateId.value = 0 + }) + .catch(e => { + generateId.value = 0 + catchtable.value.reset() + }) }