Commit a2ad7d5f authored by tyyin lan's avatar tyyin lan

chore: element ui配置调整

parent fd0a3eeb
<script setup lang="ts"> <script setup lang="ts">
import { ref } from 'vue' import { ref, shallowRef } from 'vue'
import { useResizeObserver } from '@vueuse/core' import { useResizeObserver } from '@vueuse/core'
import { useDesignSettingStore } from '@/store/modules/design-setting' import { useDesignSettingStore } from '@/store/modules/design-setting'
import zhCn from 'element-plus/es/locale/lang/zh-cn' import zhCn from 'element-plus/es/locale/lang/zh-cn'
const designSettingStore = useDesignSettingStore() const designSettingStore = useDesignSettingStore()
const currentLocale = ref({ const currentLocale = shallowRef(zhCn)
zhCn,
})
const rootContainer = ref<HTMLDivElement | null>(null) const rootContainer = ref<HTMLDivElement | null>(null)
......
...@@ -45,9 +45,7 @@ watchEffect(() => { ...@@ -45,9 +45,7 @@ watchEffect(() => {
<el-main class="main-content-wrapper"> <el-main class="main-content-wrapper">
<RouterView v-slot="{ Component }"> <RouterView v-slot="{ Component }">
<Transition appear name="fade-slide" mode="out-in"> <Transition appear name="fade-slide" mode="out-in">
<div> <Component :is="Component" />
<Component :is="Component" />
</div>
</Transition> </Transition>
</RouterView> </RouterView>
</el-main> </el-main>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment