适配语言
This commit is contained in:
12
src/App.vue
12
src/App.vue
@@ -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">
|
||||
|
||||
Reference in New Issue
Block a user