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

36 lines
685 B
Vue
Raw Normal View History

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