fix: use typed useStore

This commit is contained in:
Dominik Pschenitschni 2022-09-05 18:56:37 +02:00
parent 878b5bf236
commit 54de368642
No known key found for this signature in database
GPG key ID: B257AC0149F43A77
3 changed files with 4 additions and 4 deletions

View file

@ -1,6 +1,6 @@
import {watch, reactive, shallowReactive, unref, toRefs, readonly} from 'vue' import {watch, reactive, shallowReactive, unref, toRefs, readonly} from 'vue'
import type {MaybeRef} from '@vueuse/core' import type {MaybeRef} from '@vueuse/core'
import {useStore} from 'vuex' import {useStore} from '@/store'
import ListService from '@/services/list' import ListService from '@/services/list'
import ListModel from '@/models/list' import ListModel from '@/models/list'

View file

@ -101,7 +101,7 @@ export default defineComponent({ name: 'list-setting-background' })
<script setup lang="ts"> <script setup lang="ts">
import {ref, computed, shallowReactive} from 'vue' import {ref, computed, shallowReactive} from 'vue'
import {useI18n} from 'vue-i18n' import {useI18n} from 'vue-i18n'
import {useStore} from 'vuex' import {useStore} from '@/store'
import {useRoute, useRouter} from 'vue-router' import {useRoute, useRouter} from 'vue-router'
import debounce from 'lodash.debounce' import debounce from 'lodash.debounce'
import BaseButton from '@/components/base/BaseButton.vue' import BaseButton from '@/components/base/BaseButton.vue'

View file

@ -72,7 +72,7 @@ export default { name: 'list-setting-edit' }
<script setup lang="ts"> <script setup lang="ts">
import type {PropType} from 'vue' import type {PropType} from 'vue'
import {useRouter} from 'vue-router' import {useRouter} from 'vue-router'
import {useStore} from 'vuex' import {useStore} from '@/store'
import {useI18n} from 'vue-i18n' import {useI18n} from 'vue-i18n'
import Editor from '@/components/input/AsyncEditor' import Editor from '@/components/input/AsyncEditor'
@ -80,7 +80,7 @@ import ColorPicker from '@/components/input/colorPicker.vue'
import CreateEdit from '@/components/misc/create-edit.vue' import CreateEdit from '@/components/misc/create-edit.vue'
import {CURRENT_LIST} from '@/store/mutation-types' import {CURRENT_LIST} from '@/store/mutation-types'
import type { IList } from '@/models/list' import type {IList} from '@/modelTypes/IList'
import { useList } from '@/composables/useList' import { useList } from '@/composables/useList'
import { useTitle } from '@/composables/useTitle' import { useTitle } from '@/composables/useTitle'