bug修订

This commit is contained in:
chenxing
2026-09-02 08:41:35 +08:00
parent 428ee56bd3
commit 790f0e3db5
4 changed files with 14 additions and 5 deletions
+2 -1
View File
@@ -141,7 +141,8 @@ const columns = [
key: "clients",
width: 180,
render: (h: any, { row }: any) => {
const map: Record<number, string> = { 1: "Pc浏览器", 2: "移动App" };
// value 对齐平台 ClientEnum:1=Pc浏览器 2=移动App 8=微信公众号 32=钉钉
const map: Record<number, string> = { 1: "Pc浏览器", 2: "移动App", 8: "微信公众号", 32: "钉钉" };
const arr: number[] = Array.isArray(row.clients) ? row.clients : [];
if (!arr.length) return h("span", "-");
return h("span", arr.map((v) => map[v] ?? v).join("、"));