适配语言

This commit is contained in:
2026-02-04 17:00:58 +08:00
parent 4a1c4885ef
commit 01ea6169c9
17 changed files with 217 additions and 99 deletions

View File

@@ -5,10 +5,22 @@
<script setup lang="ts">
import RouteCache from '@/components/RouteCache.vue'
import { useRouter } from 'vue-router'
import { computed } from 'vue'
import { useGlobalStore } from '@/stores'
const router = useRouter()
const globalStore = useGlobalStore()
const loading = computed(() => globalStore.state.loading || globalStore.state.view_loading)
window['onClickPrivacy'] = () => {
// window.event?.preventDefault()
console.log('onClickPrivacy')
}
window['onClickLogin'] = () => {
router.push({ name: 'login' })
}
window['onClickRegister'] = () => {
router.push({ name: 'register' })
}
</script>
<style lang="less">