fix: 🐛 解决部门中出现的bug

部门中排序代码导致页面报错不能操作
master
学习很差啦 2022-09-22 09:52:42 +08:00
parent 72c64f017f
commit d36c2bdc3d
1 changed files with 2 additions and 2 deletions

View File

@ -299,8 +299,8 @@ export default {
for (let i = 0; i < len; i++) {
for (let j = 0; j < i; j++) {
if (array[j].sortOrder > array[i].sortOrder) {
const temp = array[j].sortOrder;
array[j].sortOrder = array[i];
const temp = array[j];
array[j] = array[i];
array[i] = temp;
}
}