feat:完成权限相关、全局配置、优化细节
This commit is contained in:
@@ -7,10 +7,21 @@
|
||||
</el-config-provider>
|
||||
</template>
|
||||
<script setup>
|
||||
import { ElConfigProvider } from 'element-plus'
|
||||
import useConfigStore from "@/stores/config";
|
||||
import { ElConfigProvider } from 'element-plus'
|
||||
import {onMounted } from "vue";
|
||||
|
||||
import zhCn from 'element-plus/dist/locale/zh-cn.mjs'
|
||||
const locale= zhCn;
|
||||
|
||||
const configStore = useConfigStore();
|
||||
|
||||
//加载全局信息
|
||||
onMounted(async()=>{
|
||||
|
||||
await configStore.getConfig();
|
||||
})
|
||||
|
||||
</script>
|
||||
<style scoped>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user