Files
zcglxt/src/assets/styles/variables.scss
Claude e48975f9d5 fix: 修复前端登录体验和API调用问题
- 修复路由守卫:未登录时直接跳转,不显示提示信息
- 修复API拦截器:401错误直接跳转,无需确认
- 移除不必要的ElMessageBox确认框
- 优化Token过期处理逻辑
- 修复文件管理API引入路径和URL前缀
- 修复调拨/回收管理API端点不匹配问题
- 修复通知管理API方法不匹配问题
- 统一系统配置API路径为单数形式

影响文件:
- src/router/index.ts
- src/api/request.ts
- src/api/file.ts
- src/api/index.ts

测试状态:
- 前端构建通过
- 所有API路径已验证
- 登录流程测试通过

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
2026-01-25 00:26:33 +08:00

87 lines
1.9 KiB
SCSS

/**
* 主题变量 - 青灰配色方案
*/
// 主题色
$primary-color: #475569;
$success-color: #10b981;
$warning-color: #f59e0b;
$danger-color: #ef4444;
$info-color: #3b82f6;
// 中性色
$text-primary: #1e293b;
$text-regular: #475569;
$text-secondary: #64748b;
$text-placeholder: #94a3b8;
$text-disabled: #cbd5e1;
// 边框色
$border-base: #e2e8f0;
$border-light: #f1f5f9;
$border-lighter: #f8fafc;
$border-extra-light: #f8fafc;
// 背景色
$bg-color: #f8fafc;
$bg-color-page: #f1f5f9;
$bg-color-overlay: #ffffff;
// 字体
$font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial,
'Noto Sans', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol',
'Noto Color Emoji';
$font-size-base: 14px;
$font-size-small: 12px;
$font-size-medium: 14px;
$font-size-large: 16px;
$font-size-extra-large: 20px;
// 圆角
$border-radius-small: 2px;
$border-radius-base: 4px;
$border-radius-large: 8px;
$border-radius-circle: 50%;
// 阴影
$box-shadow-base: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
$box-shadow-dark: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
$box-shadow-light: 0 0 2px 0 rgba(0, 0, 0, 0.05);
// 间距
$spacing-small: 4px;
$spacing-base: 8px;
$spacing-medium: 16px;
$spacing-large: 24px;
$spacing-extra-large: 32px;
// 高度
$height-small: 24px;
$height-base: 32px;
$height-medium: 36px;
$height-large: 40px;
$height-extra-large: 48px;
// 侧边栏
$sidebar-width: 200px;
$sidebar-collapsed-width: 64px;
$sidebar-bg: #1e293b;
$sidebar-text-color: #94a3b8;
$sidebar-active-bg: rgba(71, 85, 105, 0.2);
$sidebar-active-text: #ffffff;
// 头部
$header-height: 60px;
$header-bg: #ffffff;
$header-border: #e2e8f0;
// 过渡
$transition-base: all 0.3s ease;
$transition-fade: opacity 0.3s ease;
$transition-slide: transform 0.3s ease;
// z-index
$z-index-normal: 1;
$z-index-top: 1000;
$z-index-popper: 2000;