fix: 修复bug:柱状图导入数据问题; 直接访问工具收藏栏报错问题
This commit is contained in:
+7
-1
@@ -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
|
||||
Reference in New Issue
Block a user