fix: 切换变量
parent
a65af38b26
commit
61df1ceccf
|
|
@ -0,0 +1,5 @@
|
|||
allowBuilds:
|
||||
'@parcel/watcher': true
|
||||
core-js: true
|
||||
esbuild: true
|
||||
vue-demi: true
|
||||
|
|
@ -82,7 +82,6 @@
|
|||
</template>
|
||||
|
||||
<script setup lang="ts">
|
||||
import { useRouter } from "vue-router";
|
||||
import { Empty as VanEmpty, List as VanList, Tab as VanTab, Tabs as VanTabs } from "vant";
|
||||
import "vant/es/empty/style";
|
||||
import "vant/es/list/style";
|
||||
|
|
@ -96,7 +95,6 @@
|
|||
{ label: "今日已接待", value: "completed" },
|
||||
];
|
||||
|
||||
const router = useRouter();
|
||||
const { activeTab, tasks, loading, finished, error, claimingTaskId, showEmpty, emptyText, loadNextPage, claimTask } = useReceptionTasks(20);
|
||||
|
||||
|
||||
|
|
@ -104,8 +102,7 @@
|
|||
const formatDateOnly = (value: string): string => value.split(/[T ]/, 1)[0] || "-";
|
||||
|
||||
const handleReceive = async (item: ReceptionTaskDTO): Promise<void> => {
|
||||
if (!(await claimTask(item.invitationId))) return;
|
||||
await router.push({ name: "reception-record", params: { id: String(item.invitationId) } });
|
||||
if (!(await claimTask(item.taskId))) return;
|
||||
};
|
||||
</script>
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue