fix: 截图快捷键的报错

This commit is contained in:
kuaifan 2023-02-02 06:59:27 +08:00
parent 4099d21d2c
commit 948cb55f89
2 changed files with 2 additions and 2 deletions

View File

@ -246,7 +246,7 @@ export default {
key: 'manifest', key: 'manifest',
url: $A.apiUrl("../manifest") url: $A.apiUrl("../manifest")
}) })
$A.bindScreenshotKey($A.jsonParse(window.localStorage.getItem("__keyboard:data__") || {})); $A.bindScreenshotKey($A.jsonParse(window.localStorage.getItem("__keyboard:data__")) || {});
}, },
eeuiEvents() { eeuiEvents() {

View File

@ -67,7 +67,7 @@ export default {
screenshot_mate: true, screenshot_mate: true,
screenshot_shift: true, screenshot_shift: true,
screenshot_key: '', screenshot_key: '',
}, $A.jsonParse(window.localStorage.getItem("__keyboard:data__") || {})); }, $A.jsonParse(window.localStorage.getItem("__keyboard:data__")) || {});
// //
this.formData_bak = $A.cloneJSON(this.formData); this.formData_bak = $A.cloneJSON(this.formData);
}, },