|
|
@@ -73,20 +73,18 @@
|
|
|
</template>
|
|
|
|
|
|
<script lang="ts">
|
|
|
-import {computed, ComputedRef, defineComponent, onUnmounted, Ref, ref, useContext, useFetch, useStore, watch} from '@nuxtjs/composition-api'
|
|
|
+import {computed, ComputedRef, defineComponent, onUnmounted, Ref, ref, useContext, useFetch, watch} from '@nuxtjs/composition-api'
|
|
|
import {NOTIFICATION_TYPE, QUERY_TYPE} from "~/types/enums";
|
|
|
import {Notification} from "~/models/Core/Notification";
|
|
|
import {repositoryHelper} from "~/services/store/repository";
|
|
|
-import {AnyStore, ApiResponse, HydraMetadata} from "~/types/interfaces";
|
|
|
+import {ApiResponse, HydraMetadata} from "~/types/interfaces";
|
|
|
import {queryHelper} from "~/services/store/query";
|
|
|
import {NotificationUsers} from "~/models/Core/NotificationUsers";
|
|
|
-import {State} from "@vuex-orm/core";
|
|
|
import {$accessProfile} from "~/services/profile/accessProfile";
|
|
|
|
|
|
export default defineComponent({
|
|
|
setup: function () {
|
|
|
- const {$dataProvider, $dataPersister, $config, app: { i18n }} = useContext()
|
|
|
- const store:AnyStore = useStore<State>()
|
|
|
+ const {$dataProvider, $dataPersister, $config, store, app: { i18n }} = useContext()
|
|
|
const profileAccess = store.state.profile.access
|
|
|
const currentAccessId = $accessProfile(store).getCurrentAccessId()
|
|
|
|