Files
Yi.Admin/Yi.BBS.Vue3/src/App.vue

29 lines
500 B
Vue
Raw Normal View History

2023-02-26 13:17:19 +08:00
<script setup>
</script>
<template>
2023-03-11 17:00:36 +08:00
<el-config-provider :locale="locale">
2023-02-26 13:17:19 +08:00
<RouterView />
2023-03-11 17:00:36 +08:00
</el-config-provider>
2023-02-26 13:17:19 +08:00
</template>
2023-03-11 17:00:36 +08:00
<script setup>
import useConfigStore from "@/stores/config";
import { ElConfigProvider } from 'element-plus'
import {onMounted } from "vue";
2023-02-26 13:17:19 +08:00
2023-03-11 17:00:36 +08:00
import zhCn from 'element-plus/dist/locale/zh-cn.mjs'
const locale= zhCn;
const configStore = useConfigStore();
//加载全局信息
onMounted(async()=>{
await configStore.getConfig();
})
2023-03-11 17:00:36 +08:00
</script>
2023-02-26 13:17:19 +08:00
<style scoped>
</style>