mirror of
https://github.com/mayswind/ezbookkeeping.git
synced 2026-05-18 16:54:25 +08:00
migrate login page to composition API and typescript
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user