fix(web): resolve vue-tsc errors blocking push of Ant migration

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
2026-10-18 19:48:16 +03:30
co-authored by Cursor
parent 4abab55a6b
commit b25b5b125a
2 changed files with 7 additions and 3 deletions
+6 -2
View File
@@ -380,6 +380,10 @@ function archiveLead() {
const telHref = computed(() => (lead.value?.mobile ? `tel:${lead.value.mobile}` : undefined));
function openTel() {
if (telHref.value) globalThis.location.href = telHref.value;
}
const feed = computed(() => {
const rows: Array<{ key: string; title: string; by: string; at: string }> = [];
for (const ev of lead.value?.events ?? []) {
@@ -614,7 +618,7 @@ onBeforeUnmount(() => narrowMq?.removeEventListener('change', syncNarrow));
<a-space :size="8">
<a-button
v-if="telHref"
@click="() => { if (telHref) window.location.href = telHref }"
@click="openTel"
>
<template #icon><PhoneOutlined /></template>
تماس
@@ -698,7 +702,7 @@ onBeforeUnmount(() => narrowMq?.removeEventListener('change', syncNarrow));
</RouterLink>
</template>
<template #description>
{{ item.typeDef?.name || ACTIVITY_TYPE_LABELS[item.type] }}
{{ item.typeDef?.name || ACTIVITY_TYPE_LABELS[item.type as keyof typeof ACTIVITY_TYPE_LABELS] }}
· {{ item.assignee?.fullName || 'بدون مسئول' }}
· {{ formatDate(item.dueAt) }}
·
+1 -1
View File
@@ -1,6 +1,6 @@
<script setup lang="ts">
import { computed, nextTick, onBeforeUnmount, onMounted, ref, watch } from 'vue';
import { RouterLink, useRoute, useRouter } from 'vue-router';
import { useRoute, useRouter } from 'vue-router';
import axios from 'axios';
import {
Alert as AAlert,