系统配置页面部分接口完成
This commit is contained in:
+15
-1
@@ -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);
|
||||
}
|
||||
Reference in New Issue
Block a user