!760 fix(bpm):缺少了subString 方法,应该是商城功能改subString这个工具类,不小心影响了bpm的功能

Merge pull request !760 from 徐煜东/fix-bpm-20250405
This commit is contained in:
芋道源码 2025-04-05 08:39:15 +00:00 committed by Gitee
commit 5fe16b422c
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

View File

@ -536,3 +536,18 @@ export const sliceName = (name: string, start: number, end: number) => {
} }
return name return name
} }
/**
*
*
* @param str
* @param start
* @param end
*/
export const subString = (str: string, start: number, end: number) => {
if (str.length > end) {
return str.slice(start, end)
}
return str
}