Commit 09f37420 by yuyu1025 Committed by GitHub

Update menu.js (#111)

可能出现非数组直接上传的bug
parent 9d30a951
......@@ -16,7 +16,7 @@ export function getMenus(params) {
}
export function getMenuSuperior(ids) {
const data = ids.length || ids.length === 0 ? ids : Array.of(ids)
const data = Array.isArray(ids) || ids.length === 0 ? ids : Array.of(ids)
return request({
url: 'api/menus/superior',
method: 'post',
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment