Files
loan/src/App.vue
2024-03-09 02:34:09 +08:00

40 lines
885 B
Vue

<template>
<!-- <router-view v-slot="{ Component }">-->
<!-- <transition name="fade-transition" mode="out-in">-->
<!-- <keep-alive>-->
<!-- <component :is="Component"></component>-->
<!-- </keep-alive>-->
<!-- </transition>-->
<!-- </router-view>-->
<!-- v-if="showBar"-->
<div>
<!-- <van-sticky>-->
<!-- </van-sticky>-->
<router-view />
</div>
</template>
<script setup lang="ts">
import { getDefaultLocal } from '@/api/system/user';
const lang = localStorage.getItem('lang')
if (!lang) {
getDefaultLocal().then(res => {
console.log('res', res)
if (res === 'gu_IN') {
localStorage.setItem('lang', 'hi')
} else {
localStorage.setItem('lang', 'zh')
}
location.reload()
})
}
</script>
<style>
@import "style/index.scss";
body {
//background-color: #f8f8f8;
-webkit-font-smoothing: antialiased;
}
</style>