From 775247e28b1a4913d4cbadfedaa882b19c9f3d79 Mon Sep 17 00:00:00 2001 From: buvta <12312540+buvta@users.noreply.github.com> Date: Thu, 17 Dec 2020 16:47:57 +0800 Subject: [PATCH] =?UTF-8?q?=E8=AE=BE=E7=BD=AE=E5=BF=AB=E6=8D=B7=E9=94=AE?= =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E9=87=8D=E7=BD=AE=E5=8A=9F=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/Setting.vue | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) 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') {