feat: add version information

main
Yu Zhu 2023-04-02 03:28:16 +08:00
parent 272cb3d3a3
commit f9dedfe5d7
2 changed files with 4 additions and 1 deletions

View File

@ -102,6 +102,9 @@ const MenubarDemo: React.FC<{
>
{i18n.t('Set Background Image')}
</Menubar.Item>
<Menubar.Item className={MenubarItem}>
v{__APP_VERSION__}
</Menubar.Item>
</Menubar.Content>
</Menubar.Portal>
</Menubar.Menu>

View File

@ -42,7 +42,7 @@ const config: UserConfigFn = ({ command, mode, ssrBuild }) => {
base: mode === 'singlefile' ? './' : '/open-pose-editor/',
define: {
global: {},
__APP_VERSION__: JSON.stringify('0.1.4'),
__APP_VERSION__: JSON.stringify('0.1.5'),
__APP_BUILD_TIME__: Date.now(),
},
build: {