fix some bug

This commit is contained in:
Timi
2026-08-03 19:20:51 +08:00
parent dd8534eaad
commit 2c3f93cd73
8 changed files with 94 additions and 39 deletions
+3 -2
View File
@@ -1,8 +1,8 @@
<template>
<div class="customer-profile-card">
<t-button v-if="photoURL" variant="text" class="avatar-trigger" @click="openPhotoViewer">
<button v-if="photoURL" type="button" class="avatar-trigger" @click.stop="openPhotoViewer">
<t-image :src="photoURL" :alt="customerName" fit="cover" class="avatar" />
</t-button>
</button>
<div v-else class="avatar fallback" v-text="avatarText" />
<div class="content">
<div class="header">
@@ -66,6 +66,7 @@ function openPhotoViewer(): void {
width: 4rem;
height: 4rem;
display: block;
cursor: pointer;
background: transparent;
border-radius: .875rem;
}