mirror of
https://github.com/Kuingsmile/PicList.git
synced 2026-09-04 23:19:09 +08:00
✨ Feature(custom): update i18n force update
This commit is contained in:
+7
-16
@@ -1,19 +1,20 @@
|
||||
<template>
|
||||
<div id="app">
|
||||
<div
|
||||
id="app"
|
||||
:key="pageReloadCount"
|
||||
>
|
||||
<router-view />
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script lang="ts" setup>
|
||||
import { useStore } from '@/hooks/useStore'
|
||||
import type { IConfig } from 'piclist'
|
||||
import { onBeforeMount, onMounted, onUnmounted } from 'vue'
|
||||
import { onBeforeMount } from 'vue'
|
||||
|
||||
import { useStore } from '@/hooks/useStore'
|
||||
import { useATagClick } from '@/hooks/useATagClick'
|
||||
import bus from '@/utils/bus'
|
||||
import { getConfig } from '@/utils/dataSender'
|
||||
|
||||
import { FORCE_UPDATE } from '#/events/constants'
|
||||
import { pageReloadCount } from '@/utils/global'
|
||||
|
||||
useATagClick()
|
||||
const store = useStore()
|
||||
@@ -25,16 +26,6 @@ onBeforeMount(async () => {
|
||||
}
|
||||
})
|
||||
|
||||
onMounted(() => {
|
||||
bus.on(FORCE_UPDATE, () => {
|
||||
store?.updateForceUpdateTime()
|
||||
})
|
||||
})
|
||||
|
||||
onUnmounted(() => {
|
||||
bus.off(FORCE_UPDATE)
|
||||
})
|
||||
|
||||
</script>
|
||||
|
||||
<script lang="ts">
|
||||
|
||||
Reference in New Issue
Block a user