瀏覽代碼

排序修改

xiaohaizhao 5 月之前
父節點
當前提交
60dac55297
共有 1 個文件被更改,包括 2 次插入1 次删除
  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, {