hide generate mcp token when mcp is not enabled

This commit is contained in:
MaysWind
2025-07-07 22:28:00 +08:00
parent 5cb129311a
commit 07477eb5f8
18 changed files with 38 additions and 1 deletions
+4
View File
@@ -31,6 +31,10 @@ export function isDataImportingEnabled(): boolean {
return getServerSetting('i') === 1;
}
export function isMCPServerEnabled(): boolean {
return getServerSetting('mcp') === 1;
}
export function getLoginPageTips(): Record<string, string>{
return getServerSetting('lpt') as Record<string, string>;
}