chore: version动态获取
This commit is contained in:
parent
7e4bdf7bd6
commit
6018817906
@ -2,6 +2,11 @@ import type { RouteRecordStringComponent } from '@vben/types';
|
|||||||
|
|
||||||
import { $t } from '@vben/locales';
|
import { $t } from '@vben/locales';
|
||||||
|
|
||||||
|
const {
|
||||||
|
version,
|
||||||
|
// vite inject-metadata 插件注入的全局变量
|
||||||
|
} = __VBEN_ADMIN_METADATA__ || {};
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 该文件放非后台返回的路由 比如个人中心 等需要跳转显示的页面
|
* 该文件放非后台返回的路由 比如个人中心 等需要跳转显示的页面
|
||||||
*/
|
*/
|
||||||
@ -134,8 +139,8 @@ export const localMenuList: RouteRecordStringComponent[] = [
|
|||||||
icon: 'lucide:book-open-text',
|
icon: 'lucide:book-open-text',
|
||||||
keepAlive: true,
|
keepAlive: true,
|
||||||
title: '更新记录',
|
title: '更新记录',
|
||||||
badge: '1.3.0',
|
badge: `当前: ${version}`,
|
||||||
badgeVariants: '#CC0033',
|
badgeVariants: 'bg-primary',
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
|
Loading…
Reference in New Issue
Block a user