mirror of
https://gitee.com/beijing_hongye_huicheng/lilishop-ui.git
synced 2025-12-18 00:45:54 +08:00
fix: 🐛 解决部门中出现的bug
部门中排序代码导致页面报错不能操作
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user