feat: 新增开启水印环境变量

This commit is contained in:
xlsea
2025-05-09 16:38:29 +08:00
parent 27372b309f
commit f946d05815
6 changed files with 12 additions and 1 deletions

View File

@ -54,7 +54,7 @@ export const themeSettings: App.Theme.ThemeSetting = {
right: true
},
watermark: {
visible: false,
visible: import.meta.env.VITE_WATERMARK === 'Y',
text: 'RuoYi-Vue-Plus'
},
tokens: {

View File

@ -106,6 +106,8 @@ declare namespace Env {
readonly VITE_STORAGE_PREFIX?: string;
/** Whether to automatically detect updates after configuring application packaging */
readonly VITE_AUTOMATICALLY_DETECT_UPDATE?: CommonType.YesOrNo;
/** Whether to show watermark */
readonly VITE_WATERMARK?: CommonType.YesOrNo;
/** show proxy url log in terminal */
readonly VITE_PROXY_LOG?: CommonType.YesOrNo;
/** The launch editor */