Commit a9b2332f by ZhengJie

[代码完善](v2.5): v2.5 修复创建角色后点击角色报错的Bug

parent ce5daa75
......@@ -9,7 +9,7 @@ export function getDepts(params) {
}
export function getDeptSuperior(ids) {
const data = ids.length ? ids : Array.of(ids)
const data = ids.length !== null ? ids : Array.of(ids)
return request({
url: 'api/dept/superior',
method: 'post',
......
......@@ -16,7 +16,7 @@ export function getMenus(params) {
}
export function getMenuSuperior(ids) {
const data = ids.length ? ids : Array.of(ids)
const data = ids.length !== null ? 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