jiachenlong/frontend/src.bak/config/version.js

25 lines
622 B
JavaScript
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

// 版本号配置文件
// ⚠️ 注意:版本号现在统一在根目录 VERSION 文件中管理
// 修改版本号只需修改 ../../VERSION 文件中的 VERSION=xxx
// 从环境变量读取vite.config.js 注入)
export const APP_VERSION = import.meta.env.APP_VERSION || '1.0.0'
// 版本信息
export const VERSION_INFO = {
version: APP_VERSION,
buildDate: new Date().toISOString().split('T')[0],
name: '甲辰收藏'
}
// 获取完整标题
export const getAppTitle = () => {
return `${VERSION_INFO.name} v${VERSION_INFO.version}`
}
export default {
APP_VERSION,
VERSION_INFO,
getAppTitle
}