Browse Source

排序修改

xiaohaizhao 5 months ago
parent
commit
60dac55297
1 changed files with 2 additions and 1 deletions
  1. 2 1
      control/components/prodnum-FW01B/prodnum-FW01B.vue

+ 2 - 1
control/components/prodnum-FW01B/prodnum-FW01B.vue

@@ -65,7 +65,8 @@ export default {
     control: function (newVal) {
       if (newVal) {
         let names = [];
-        for (const key in newVal.function) {
+        const keys = Object.keys(newVal.function).sort();
+        for (const key of keys) {
           names.push(key);
         }
         this.list = this.__proto__.getControlItem(names, newVal, {