From f0457608d7c8c32d3534d6fa1c8632bd38ce24b9 Mon Sep 17 00:00:00 2001
From: gaoluyang <2820782392@qq.com>
Date: 星期二, 07 四月 2026 10:28:21 +0800
Subject: [PATCH] Merge remote-tracking branch 'origin/dev_New' into dev_新疆_大罗素马铃薯

---
 src/components/PIMTable/PIMTable.vue |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/components/PIMTable/PIMTable.vue b/src/components/PIMTable/PIMTable.vue
index eb0cf87..8e22459 100644
--- a/src/components/PIMTable/PIMTable.vue
+++ b/src/components/PIMTable/PIMTable.vue
@@ -367,11 +367,11 @@
     return format(val);
   } else return val;
 };
+const validTagTypes = ["primary", "success", "info", "warning", "danger"];
 
 const formatType = (val, format) => {
-  if (typeof format === "function") {
-    return format(val);
-  } else return "";
+  const type = typeof format === "function" ? format(val) : undefined;
+  return validTagTypes.includes(type) ? type : undefined;
 };
 
 const isOperationDisabled = (operation, row) => {

--
Gitblit v1.9.3