This commit is contained in:
2023-02-28 18:48:14 +08:00
parent e8996c3fbf
commit e49f4426f3
10 changed files with 323 additions and 56 deletions

View File

@@ -2,8 +2,8 @@
* @Author: Kane
* @Date: 2023-02-15 09:25:52
* @LastEditors: Kane
* @LastEditTime: 2023-02-28 01:15:01
* @FilePath: /task_schedule/src/App.vue
* @LastEditTime: 2023-02-28 18:45:57
* @FilePath: /deskop_task_schedule/code/web/task_schedule/src/App.vue
* @Description:
*
* Copyright (c) ${2022} by Kane, All Rights Reserved.
@@ -15,38 +15,16 @@
</template>
<script>
import HelloWorld from "./components/HelloWorld.vue";
import zhCn from "element-plus/lib/locale/lang/zh-cn"; //element-plus语言组件
import { reactive } from "vue";
export default {
name: "App",
components: { HelloWorld },
setup(props)
components: {},
setup()
{
const locale = zhCn;
const ui = reactive({
counter: 0,
});
const onCount = () =>
{
ui.counter++;
console.log(ui.counter);
};
// setInterval(() =>
// {
// ui.counter += 1;
// // console.log(counter);
// }, 1000);
// setInterval(() =>
// {
// location.reload();
// }, 5000);
return { locale, ui, onCount };
return { locale, };
},
};
</script>