migrate login page to composition API and typescript

This commit is contained in:
MaysWind
2025-01-19 19:43:57 +08:00
parent 0a999d56c7
commit 1afd811aa8
5 changed files with 501 additions and 527 deletions
+3 -3
View File
@@ -1,4 +1,4 @@
function getServerSetting(key: string): string | number | boolean | undefined | null {
function getServerSetting(key: string): string | number | boolean | Record<string, string> | undefined | null {
const settings = window.EZBOOKKEEPING_SERVER_SETTINGS || {};
return settings[key];
}
@@ -31,8 +31,8 @@ export function isDataImportingEnabled(): boolean {
return getServerSetting('i') === 1;
}
export function getLoginPageTips(): string {
return getServerSetting('lpt') as string;
export function getLoginPageTips(): Record<string, string>{
return getServerSetting('lpt') as Record<string, string>;
}
export function getMapProvider(): string {