fix: 切换变量

master
xjs 2026-08-10 10:48:49 +08:00
parent a65af38b26
commit 61df1ceccf
2 changed files with 6 additions and 4 deletions

5
pnpm-workspace.yaml Normal file
View File

@ -0,0 +1,5 @@
allowBuilds:
'@parcel/watcher': true
core-js: true
esbuild: true
vue-demi: true

View File

@ -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>