code refactor

This commit is contained in:
MaysWind
2023-04-08 15:58:07 +08:00
parent c4b07b98aa
commit 8c33243c90
8 changed files with 16 additions and 16 deletions
+1 -1
View File
@@ -15,5 +15,5 @@ export default function (value, maxLength) {
return value;
}
return value.substr(0, maxLength - 3) + '...';
return value.substring(0, maxLength - 3) + '...';
}