123456789101112131415161718192021222324252627282930313233343536373839 |
- <template>
- <div style="overflow: hidden">
- <router-view/>
- </div>
- </template>
- <script>
- import {
- defineComponent,
- ref,
- getCurrentInstance
- } from 'vue'
- import {useStore} from 'vuex'
- import {ElConfigProvider} from 'element-plus'
- import zhLocale from 'element-plus/lib/locale/lang/zh-cn'
- export default defineComponent({
- name: 'App',
- components: {
- [ElConfigProvider.name]: ElConfigProvider //添加组件
- },
- setup() {
- const store = useStore()
- const locale = ref(zhLocale)
- const that = getCurrentInstance().appContext.config.globalProperties
- return {
- locale
- }
- }
- })
- </script>
- <style scope lang="scss">
- html, body {
- margin: 0;
- padding: 0;
- border: 0;
- width: 100%;
- height: 100%;
- }
- </style>
|