he wei
18 小时以前 c353554427f56eeda8a7cb75cc12bfa572dd1c85
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
<template>
  <el-config-provider :size="size" :z-index="zIndex" :locale="locale">
    <router-view />
  </el-config-provider>
</template>
 
<script setup name="App">
import { ref, computed, reactive, watch, watchEffect, onMounted } from 'vue';
import { storeToRefs } from 'pinia';
import { ElConfigProvider } from 'element-plus';
import zhCn from 'element-plus/dist/locale/zh-cn.mjs';
// import { mapState } from 'pinia';
import { useAppStore } from '@/store/app.js';
 
 const appStore = useAppStore();
 
 const { size } = storeToRefs(appStore);
 
 const zIndex = ref(3000);
 const locale = ref(zhCn);
</script>
 
<style scoped lang="less">
 
html,
body,
#app {
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
 
  background: gray;
}
</style>