diff --git a/src/components/Setting.vue b/src/components/Setting.vue
index ffb4b65..ba448c6 100644
--- a/src/components/Setting.vue
+++ b/src/components/Setting.vue
@@ -28,6 +28,9 @@
+
@@ -220,7 +223,7 @@
import { mapMutations } from 'vuex'
import pkg from '../../package.json'
import { setting, sites, shortcut } from '../lib/dexie'
-import { sites as defaultSites } from '../lib/dexie/initData'
+import { sites as defaultSites, localKey as defaultShortcuts } from '../lib/dexie/initData'
import { shell, clipboard, remote, ipcRenderer } from 'electron'
import db from '../lib/dexie/dexie'
import zy from '../lib/site/tools'
@@ -428,6 +431,12 @@ export default {
})
})
},
+ resetShortcut () {
+ shortcut.clear().then(shortcut.add(defaultShortcuts)).then(res => {
+ this.getShortcut()
+ this.$message.success('快捷键已重置')
+ })
+ },
async changeProxyType (e) {
this.d.proxy.type = e
if (e === 'manual') {