系统配置页面部分接口完成

This commit is contained in:
2026-08-28 10:55:01 +08:00
parent 97a0465890
commit 6651cb6749
5 changed files with 367 additions and 180 deletions
+15 -1
View File
@@ -140,4 +140,18 @@ export function generateSecurePassword(passwordLength:number) {
// 获取 token
export const getToken = () => {
return localStorage.getItem('token');
};
};
// tag自定义样式颜色
// 文字颜色
export const tagTextColor = (color: string) => {
return color || '#333';
}
// 背景颜色
export const tagBgColor = (color: string) => {
return getColorWithOpacity((color || '#333'), 0.08);
}
// 边框颜色
export const tagBorderColor = (color: string) => {
return getColorWithOpacity((color || '#333'), 0.3);
}