feat: sanitize service detail display in TableProductAndService component
Some checks failed
Spell Check / Spell Check with Typos (push) Failing after 5s

This commit is contained in:
puriphatt 2025-07-08 15:31:41 +07:00
parent 78a59e277f
commit 5e155cfb0c

View file

@ -251,7 +251,10 @@ function selectedIndex(item: any) {
>
<!-- NOTE: custom column will starts with # -->
<template v-if="!col.name.startsWith('#')">
<span>
<span v-if="col.name === 'serviceDetail'">
{{ props.row.detail.replace(/<\/?[^>]+(>|$)/g, '') || '-' }}
</span>
<span v-else>
{{
typeof col.field === 'string'
? props.row[col.field as keyof (Product | Service)]