diff options
Diffstat (limited to 'src/store/modules/AccessControl/LocalUserMangementStore.js')
-rw-r--r-- | src/store/modules/AccessControl/LocalUserMangementStore.js | 19 |
1 files changed, 2 insertions, 17 deletions
diff --git a/src/store/modules/AccessControl/LocalUserMangementStore.js b/src/store/modules/AccessControl/LocalUserMangementStore.js index b9b67eac..e9de3cc1 100644 --- a/src/store/modules/AccessControl/LocalUserMangementStore.js +++ b/src/store/modules/AccessControl/LocalUserMangementStore.js @@ -1,20 +1,5 @@ -import api from '../../api'; -import i18n from '../../../i18n'; - -const getResponseCount = responses => { - let successCount = 0; - let errorCount = 0; - - responses.forEach(response => { - if (response instanceof Error) errorCount++; - else successCount++; - }); - - return { - successCount, - errorCount - }; -}; +import api, { getResponseCount } from '@/store/api'; +import i18n from '@/i18n'; const LocalUserManagementStore = { namespaced: true, |