()
| 617 | } |
| 618 | , |
| 619 | setHotkey() { |
| 620 | Swal.fire({ |
| 621 | title: '快捷键设置', |
| 622 | text: '请选择鼠标快捷键', |
| 623 | input: 'select', |
| 624 | inputValue: util.getValue('hotkey'), |
| 625 | inputOptions: shortcutManager.hotkeyOptions, |
| 626 | confirmButtonText: '保存并刷新页面', |
| 627 | cancelButtonText: '取消', |
| 628 | showCancelButton: true, |
| 629 | customClass: toastClass, |
| 630 | }).then(async (result) => { |
| 631 | if (result.isConfirmed) { |
| 632 | util.setValue('hotkey', result.value); |
| 633 | setShortcut(result.value); |
| 634 | toast.fire({icon: 'success', title: '快捷键设置成功!'}); |
| 635 | history.go(0); // 刷新页面 |
| 636 | } |
| 637 | }); |
| 638 | } |
| 639 | , |
| 640 | setLanguage(lang) { |
| 641 | let args = lang === 'from' ? { |
nothing calls this directly
no test coverage detected