diff --git a/web/src/components/TextOverflow.vue b/web/src/components/TextOverflow.vue index 0087002..317eb03 100644 --- a/web/src/components/TextOverflow.vue +++ b/web/src/components/TextOverflow.vue @@ -6,15 +6,18 @@ const props = withDefaults( defineProps<{ text: string title?: string + disableDialog?: boolean }>(), { - title: '详情' + title: '详情', + disableDialog: false } ) const showDialog = ref(false) function handleClick() { + if (props.disableDialog) return if (props.text && props.text !== '-') { showDialog.value = true } @@ -22,8 +25,11 @@ function handleClick() {