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

35 lines
699 B
Vue
Raw Permalink Normal View History

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