fix(接口定义): 修复调试缺陷

This commit is contained in:
fit2-zhao 2021-02-26 14:06:13 +08:00
parent e15b1624a8
commit 7e4c7303c4
2 changed files with 11 additions and 7 deletions

View File

@ -319,6 +319,7 @@ export function _getBodyUploadFiles(request, bodyUploadFiles, obj) {
} }
} }
} }
export function handleCtrlSEvent(event, func) { export function handleCtrlSEvent(event, func) {
if (event.keyCode === 83 && event.ctrlKey) { if (event.keyCode === 83 && event.ctrlKey) {
// console.log('拦截到 ctrl + s');//ctrl+s // console.log('拦截到 ctrl + s');//ctrl+s
@ -330,9 +331,12 @@ export function handleCtrlSEvent(event, func) {
} }
export function strMapToObj(strMap) { export function strMapToObj(strMap) {
if (strMap) {
let obj = Object.create(null); let obj = Object.create(null);
for (let [k, v] of strMap) { for (let [k, v] of strMap) {
obj[k] = v; obj[k] = v;
} }
return obj; return obj;
} }
return null;
}