Skip to content

Commit d5a3a25

Browse files
committed
fix(types): fix ts type error
1 parent d567c05 commit d5a3a25

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/typings/app.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -374,7 +374,7 @@ declare namespace App {
374374
themeColor: {
375375
title: string;
376376
followPrimary: string;
377-
} & Theme.ThemeColor;
377+
} & Record<Theme.ThemeColorKey, string>;
378378
recommendColor: string;
379379
recommendColorDesc: string;
380380
preset: {

src/views/_builtin/login/index.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ const appStore = useAppStore();
2323
const themeStore = useThemeStore();
2424
2525
interface LoginModule {
26-
label: string;
26+
label: App.I18n.I18nKey;
2727
component: Component;
2828
}
2929

0 commit comments

Comments
 (0)