fix: 修复bug:柱状图导入数据问题; 直接访问工具收藏栏报错问题

This commit is contained in:
osiris
2024-03-26 18:47:51 +08:00
parent 4631227f9a
commit df8ed7f9c8
5 changed files with 16 additions and 6 deletions
+7 -1
View File
@@ -113,11 +113,17 @@ export function numberToChinese(num: number): string {
return chinese;
}
//rtrim: 删除右侧指定字符, 默认删除空格
export function rtrim(str, char = ' ') {
return str.replace(new RegExp('\\'+char+'+$', 'g'), '');
}
const StringUtils = {
transferred,
copy,
genRandomStrByChars,
numberToChinese
numberToChinese,
rtrim,
}
export default StringUtils