提交 161e6901 作者: 吴佳伟

fix: 地区渲染方法增加自定义拼接符号

上级 176268d8
......@@ -35,7 +35,7 @@ export const refreshDictData = () => {
export const areaOptions = getDictData();
export const getText = (scope: String) => {
export const getText = (scope: string, spliced: string) => {
if (!scope || !areaOptions || areaOptions.length === 0) {
return ''
}
......@@ -64,5 +64,9 @@ export const getText = (scope: String) => {
labels.push(text)
}
return labels ? labels.join(' / ') : ''
if (spliced) {
return labels ? labels.join(spliced) : ''
} else {
return labels ? labels.join('') : ''
}
}
\ No newline at end of file
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论