shop-front-end/src/App.vue

25 lines
640 B
Vue

<script setup lang="ts">
import { computed, onMounted } from "vue";
import { ElConfigProvider } from "element-plus";
import zhCn from "element-plus/lib/locale/lang/zh-cn";
import { ReDialog } from "@/components/ReDialog";
import { useBtnPermissionStore } from "@/store/modules/btnPermission";
const currentLocale = computed(() => zhCn);
const btnPermissionStore = useBtnPermissionStore();
onMounted(async () => {
await btnPermissionStore.fetchPermissions();
})
</script>
<template>
<ElConfigProvider :locale="currentLocale">
<router-view />
<ReDialog />
</ElConfigProvider>
</template>
<style scoped lang="scss">
</style>