desktop_task_schedule/code/web/task_schedule/src/App.vue

36 lines
685 B
Vue
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<!--
* @Author: Kane
* @Date: 2023-02-15 09:25:52
* @LastEditors: Kane
* @LastEditTime: 2023-02-28 22:15:53
* @FilePath: /task_schedule/src/App.vue
* @Description:
* 应用的框架
* 1配置el-config-provider配置为中文
*
* Copyright (c) ${2022} by Kane, All Rights Reserved.
-->
<template>
<el-config-provider :locale="this.locale">
<router-view></router-view>
</el-config-provider>
</template>
<script>
import zhCn from "element-plus/lib/locale/lang/zh-cn"; //element-plus语言组件
export default {
name: "App",
components: {},
setup()
{
const locale = zhCn;
return { locale, };
},
};
</script>
<style scoped></style>