perf: 支持部署到阿里云GA

This commit is contained in:
xiaojunnuo
2026-01-31 19:30:20 +08:00
parent c27636529d
commit 1a0d3eeb1b
14 changed files with 408 additions and 18 deletions
+11 -2
View File
@@ -1,8 +1,17 @@
import dayjs from "dayjs";
export const stringUtils = {
maxLength(str?: string, length = 100) {
if (str) {
return str.length > length ? str.slice(0, length) + '...' : str;
return str.length > length ? str.slice(0, length) + "..." : str;
}
return '';
return "";
},
appendTimeSuffix(str?: string) {
if (str) {
return `${str}-${dayjs().format("YYYYMMDDHHmmssSSS")}`;
}
return "";
},
};