代码优化,避免【菜单、部门】移动节点时出现PID数据环形问题

This commit is contained in:
Zheng Jie 2023-07-07 18:01:31 +08:00
parent 47806c6cc4
commit 61ed4bc69c
3 changed files with 15 additions and 2 deletions

View File

@ -20,6 +20,12 @@
|--------------------------------------| --- |
| https://github.com/elunez/eladmin-mp | https://gitee.com/elunez/eladmin-mp |
#### VPS推荐
<a href="https://bwh81.net/aff.php?aff=70876" target="_blank">
<img src="https://eladmin.vip/images/banner/side.jpeg" alt="明道云零代码构建平台" style="width: 400px;border-radius: 2px;">
</a>
#### 主要特性
- 使用最新技术栈,社区资源丰富。
- 高效率开发,代码生成器可一键生成前后端代码

View File

@ -8,10 +8,11 @@ export function getDepts(params) {
})
}
export function getDeptSuperior(ids) {
export function getDeptSuperior(ids, exclude) {
exclude = exclude !== undefined ? exclude : false
const data = ids.length || ids.length === 0 ? ids : Array.of(ids)
return request({
url: 'api/dept/superior',
url: 'api/dept/superior?exclude=' + exclude,
method: 'post',
data
})

View File

@ -16,6 +16,12 @@
| github | https://github.com/elunez/eladmin-mp | https://github.com/elunez/eladmin-web-mp |
| 码云 | https://gitee.com/elunez/eladmin-mp | https://gitee.com/elunez/eladmin-web-mp |
#### VPS推荐
<a href="https://bwh81.net/aff.php?aff=70876" target="_blank">
<img src="https://eladmin.vip/images/banner/side.jpeg" alt="明道云零代码构建平台" style="width: 400px;border-radius: 2px;">
</a>
#### 主要特性
- 使用最新技术栈,社区资源丰富。
- 高效率开发,代码生成器可一键生成前后端代码