shop-front-end/src/App.vue

25 lines
640 B
Vue
Raw Normal View History

2025-03-31 09:41:56 +08:00
<script setup lang="ts">
import { computed, onMounted } from "vue";
2025-03-04 09:11:33 +08:00
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";
2025-03-31 09:41:56 +08:00
const currentLocale = computed(() => zhCn);
const btnPermissionStore = useBtnPermissionStore();
2025-03-31 09:41:56 +08:00
onMounted(async () => {
await btnPermissionStore.fetchPermissions();
})
2025-03-04 09:11:33 +08:00
</script>
2025-03-31 09:41:56 +08:00
<template>
<ElConfigProvider :locale="currentLocale">
<router-view />
<ReDialog />
</ElConfigProvider>
</template>
<style scoped lang="scss">
</style>