From b594c6680116745912ed943afd00a9b896496c76 Mon Sep 17 00:00:00 2001 From: songshankun <songshankun@foxmail.com> Date: 星期一, 30 十月 2023 11:26:43 +0800 Subject: [PATCH] feat: 任务组件添加选中状态;全局状态管理添加当前选中任务 --- src/views/dashboard/components/PersonInfo.vue | 8 +++++--- 1 files changed, 5 insertions(+), 3 deletions(-) diff --git a/src/views/dashboard/components/PersonInfo.vue b/src/views/dashboard/components/PersonInfo.vue index d054728..95693e4 100644 --- a/src/views/dashboard/components/PersonInfo.vue +++ b/src/views/dashboard/components/PersonInfo.vue @@ -29,10 +29,12 @@ </div> </template> <script setup lang="ts"> -import type { UserFilled } from '@element-plus/icons-vue' -import { computed, toRefs } from 'vue' +import { StarFilled, UserFilled } from '@element-plus/icons-vue' +import { toRefs } from 'vue' +import type { Worker } from '@/api/task' + export interface PersonInfoProps { - person: person + person: Worker } const props = defineProps<PersonInfoProps>() -- Gitblit v1.8.0