Commit 8c748fe1 authored by zhangwenshuai's avatar zhangwenshuai

链接拆分不区分中英文逗号

parent 135ca0d7
......@@ -8,7 +8,8 @@ export const ApolloTextLinkDetail = (props: any) => {
const { value, origin, formatter } = props;
const newValue = formatter ? formatter(value) : value;
if (!newValue) return null;
const arr = newValue.split(',');
// 以逗号分隔
const arr = newValue.replace(/,/g, ',').split(',');
const [dotVisible, setDotVisible] = useState(false);
const outer = useRef(null);
const inner = useRef(null);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment