diff --git a/src/app/router/index.js b/src/app/router/index.js index dfb7721a..aa08eb0f 100644 --- a/src/app/router/index.js +++ b/src/app/router/index.js @@ -1,8 +1,7 @@ import { createRouter, createWebHistory } from 'vue-router'; import CrmSections from '@webitel/ui-sdk/src/enums/WebitelApplications/CrmSections.enum'; -// import Auth from '@webitel/ui-sdk/src/modules/Userinfo/components/the-auth.vue'; -import Auth from '../../auth-test.vue'; +import Auth from '@webitel/ui-sdk/src/modules/Userinfo/components/the-auth.vue'; import store from '../store'; import TheCrmWorkspace from '../components/the-crm-workspace.vue'; import TheContacts from '../../modules/contacts/components/the-contacts.vue'; @@ -28,7 +27,7 @@ const checkAppAccess = (to, from, next) => { const checkRouteAccess = ((to, from, next) => { // has Role Section Access AND (Select role permissions || ObAC permissions access) const hasReadAccess = store.getters['userinfo/CHECK_OBJECT_ACCESS']({ route: to }) - && store.getters['userinfo/HAS_READ_ACCESS']({ name: 'contacts' }); + && store.getters['userinfo/HAS_READ_ACCESS']({ name: 'contacts' }); if (hasReadAccess) { next(); } else { @@ -87,7 +86,6 @@ const routes = [ }, ]; - const router = createRouter({ history: createWebHistory(import.meta.env.BASE_URL), scrollBehavior() { diff --git a/src/auth-test.vue b/src/auth-test.vue deleted file mode 100644 index af366668..00000000 --- a/src/auth-test.vue +++ /dev/null @@ -1,80 +0,0 @@ - - - - -