3
This commit is contained in:
@@ -49,3 +49,8 @@ export const KPI_ICONS = {
|
||||
stockCount: '/static/icons/product.png'
|
||||
}
|
||||
|
||||
// 登录页顶部图片,避免在页面硬编码,允许通过环境变量或本地存储覆盖
|
||||
const envAuthLoginImg = (typeof process !== 'undefined' && process.env && (process.env.VITE_APP_AUTH_LOGIN_TOP_IMAGE || process.env.AUTH_LOGIN_TOP_IMAGE)) || '';
|
||||
const storageAuthLoginImg = typeof uni !== 'undefined' ? (uni.getStorageSync('AUTH_LOGIN_TOP_IMAGE') || '') : '';
|
||||
export const AUTH_LOGIN_TOP_IMAGE = String(envAuthLoginImg || storageAuthLoginImg || '/static/icons/undraw_visual-data_1eya.png');
|
||||
|
||||
|
||||
@@ -42,3 +42,11 @@ export const STORAGE_KEYS = {
|
||||
}
|
||||
|
||||
|
||||
// KPI 标签常量,避免页面硬编码
|
||||
export const KPI_LABELS = {
|
||||
todaySales: '今日销售额',
|
||||
monthSales: '本月销售额',
|
||||
monthProfit: '本月利润',
|
||||
stockCount: '库存量'
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user