修正NEXT_PUBLIC的读取

This commit is contained in:
mtvpls
2025-12-17 21:24:44 +08:00
parent ece16b38ee
commit 6a12951753
5 changed files with 9 additions and 5 deletions
+1 -1
View File
@@ -537,7 +537,7 @@ export const UserMenu: React.FC = () => {
const showOfflineDownload =
(authInfo?.role === 'owner' || authInfo?.role === 'admin') &&
typeof window !== 'undefined' &&
process.env.NEXT_PUBLIC_ENABLE_OFFLINE_DOWNLOAD === 'true';
(window as any).RUNTIME_CONFIG?.ENABLE_OFFLINE_DOWNLOAD === true;
// 检查是否显示修改密码按钮
const showChangePassword =