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');
|
||||
|
||||
|
||||
Reference in New Issue
Block a user