开发: 添加客户列表
This commit is contained in:
@@ -69,7 +69,7 @@ export const formatTags = (data: any) => {
|
||||
if (data) {
|
||||
try {
|
||||
const tags = JSON.parse(data);
|
||||
if (Array.isArray(tags)) {
|
||||
if (Array.isArray(tags) && tags.length) {
|
||||
return (
|
||||
<>
|
||||
{tags.map((item) => {
|
||||
@@ -82,11 +82,9 @@ export const formatTags = (data: any) => {
|
||||
</>
|
||||
);
|
||||
}
|
||||
} catch (e) {
|
||||
return <></>;
|
||||
}
|
||||
} catch (e) {}
|
||||
}
|
||||
return <></>;
|
||||
return <div>无标签</div>;
|
||||
};
|
||||
|
||||
type IGroupIcon = {
|
||||
|
Reference in New Issue
Block a user