renderer: rename temp store to counter store
This commit is contained in:
1 parent
2cb566b49e
commit
dc30abe4ee
2 files changed
+4
-4
No files matched your search
@@ -2,13 +2,13 @@
|
|||||||
import { useI18n } from 'vue-i18n'
|
import { useI18n } from 'vue-i18n'
|
||||||
import { useTheme } from 'vuetify'
|
import { useTheme } from 'vuetify'
|
||||||
import { openExternal } from '@/renderer/utils'
|
import { openExternal } from '@/renderer/utils'
|
||||||
import { useTempStore } from '@/renderer/store/temp'
|
import { useCounterStore } from '@/renderer/store/counter'
|
||||||
import { storeToRefs } from 'pinia'
|
import { storeToRefs } from 'pinia'
|
||||||
import { onMounted, ref } from 'vue'
|
import { onMounted, ref } from 'vue'
|
||||||
|
|
||||||
const { locale, availableLocales } = useI18n()
|
const { locale, availableLocales } = useI18n()
|
||||||
const { counterIncrease } = useTempStore()
|
const { counterIncrease } = useCounterStore()
|
||||||
const { counter } = storeToRefs(useTempStore())
|
const { counter } = storeToRefs(useCounterStore())
|
||||||
const theme = useTheme()
|
const theme = useTheme()
|
||||||
const languages = ref(['en'])
|
const languages = ref(['en'])
|
||||||
const appVersion = ref('Unknown')
|
const appVersion = ref('Unknown')
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
import { defineStore } from 'pinia'
|
import { defineStore } from 'pinia'
|
||||||
|
|
||||||
export const useTempStore = defineStore('temp', {
|
export const useCounterStore = defineStore('counter', {
|
||||||
state: () => ({
|
state: () => ({
|
||||||
counter: 0
|
counter: 0
|
||||||
}),
|
}),
|
||||||
Reference in new issue
Block a user