fix(接口定义): 修复调试缺陷
This commit is contained in:
parent
e15b1624a8
commit
7e4c7303c4
|
@ -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;
|
||||||
|
}
|
||||||
|
|
Loading…
Reference in New Issue