You need to sign in before continuing.

Commit 117ad1198c6fda4e8b3b097e128e56cc6607e072

Authored by chenxt
1 parent 4fe036c9

设置页面排序

src/components/Common/AffixMenu.js
... ... @@ -406,7 +406,7 @@ class AffixMenuComponent extends Component {
406 406 } else {
407 407 dataSource = this.state[`modalContentData${count}`];
408 408 }
409   - dataSource.forEach((item, index) => {
  409 + dataSource?.forEach((item, index) => {
410 410 // 根据索引来更新 iOrder,使用 index + 1 因为排序通常从1开始,而不是0
411 411 dataSource[index].iOrder = (index + 1) * 10;
412 412 });
... ...