fix(web): resolve vue-tsc errors blocking push of Ant migration
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -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,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,
|
||||
|
||||
Reference in New Issue
Block a user