fix(admin): 删除用户审批功能并更新图标

This commit is contained in:
HTEWJ\26070045 committed 2026-08-07 13:52:35 +08:00
1 parent 55c6467d83
commit 07e83132c0
11 files changed
+141 -153

No files matched your search

@@ -10,6 +10,15 @@ import { storeToRefs } from 'pinia';
import { ExternalLink } from 'lucide-vue-next';
import { useLinkedNavStore } from '../stores/linked-nav.store';
/**
* 判断关联入口是否为图纸标注。
* 图纸标注入口使用产品提供的尺规图标,其余入口继续使用统一的外链图标。
*/
function isDrawingAnnotationEntry(displayName: string): boolean {
const normalized = String(displayName || '').trim();
return normalized.includes('图纸标注') || normalized.includes('标注');
}
const props = withDefaults(defineProps<{
compact?: boolean;
showLabel?: boolean;
@@ -56,7 +65,13 @@ onMounted(() => {
:title="entry.display_name"
@click="linkedNav.openItem(entry)"
>
<ExternalLink :class="resolvedIconClass" />
<img
v-if="isDrawingAnnotationEntry(entry.display_name)"
src="/icons/drawing-annotation.png"
alt=""
:class="[resolvedIconClass, 'object-contain']"
/>
<ExternalLink v-else :class="resolvedIconClass" />
<span v-if="showLabel && !compact" class="truncate">{{ entry.display_name }}</span>
</button>
</template>