Skip to content

Commit ff83e8f

Browse files
authored
Merge pull request #153 from mcthesw/dev
fix: 修复错误的ts类型
2 parents bc79d5f + 1a59312 commit ff83e8f

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

src/components/HotkeySelector.vue

+2-2
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ import { $t } from "../i18n";
55
66
// Initialize hotkey_out with default values
77
const hotkey_out = defineModel<{
8-
backup: string[];
9-
apply: string[];
8+
backup: [string, string, string];
9+
apply: [string, string, string];
1010
}>({
1111
default: {
1212
backup: ['', '', ''],

src/schemas/saveTypes.ts

+4-4
Original file line numberDiff line numberDiff line change
@@ -140,8 +140,8 @@ export interface QuickActionsSettings {
140140
* 快捷键与其对应的操作列表
141141
*/
142142
hotkeys: {
143-
backup: string[],
144-
apply: string[]
143+
backup: [string, string, string],
144+
apply: [string, string, string]
145145
};
146146
}
147147

@@ -200,8 +200,8 @@ export let default_config: Config = {
200200
favorites: [],
201201
quick_action: {
202202
hotkeys: {
203-
backup: [],
204-
apply: []
203+
backup: ["", "", ""],
204+
apply: ["", "", ""]
205205
}
206206
}
207207
};

0 commit comments

Comments
 (0)