<script setup>
import zh from 'element-plus/es/locale/lang/zh-cn'
import * as api from '@/api/rbac/web-config'
const language = zh
const isLoadUseWebConfigStoreAddData = ref(false)
provide('isLoadUseWebConfigStoreAddData', isLoadUseWebConfigStoreAddData)
onMounted(() => {
  // 获取网站配置
  api.getActivity('MULTISHOP_WEBSITE_CONFIG').then(data => {
    useWebConfigStore().addData(formatConfigInfo(data))
    isLoadUseWebConfigStoreAddData.value = true
  })
  // 获取通联支付配置信息
  useAllinpayStore().getPaySettlementType()
})
</script>

<template>
  <el-config-provider
    :locale="language"
    namespace="el"
  >
    <router-view />
  </el-config-provider>
</template>

<!-- eslint-disable-next-line vue-scoped-css/enforce-style-type -->
<style lang="scss">
@use '@/assets/app.scss';
</style>
