🔨 优化主机逻辑.

This commit is contained in:
lijiahang
2025-03-28 14:34:51 +08:00
parent 6b5c7fd409
commit 986f0974db
29 changed files with 1569 additions and 1051 deletions

View File

@@ -167,6 +167,15 @@ export const sleep = (ms: number) => {
return new Promise(resolve => setTimeout(resolve, ms));
};
// 添加后缀
export const addSuffix = (value: any, suffix: string) => {
if (value === undefined || value === '') {
return '';
} else {
return `${value}${suffix}`;
}
};
/**
* 获取当前页面的缩放值
*/