MaiXinRong 3 years ago
parent
commit
9c8c9ec2d4
1 changed files with 1 additions and 1 deletions
  1. 1 1
      app/service/stage_detail_att.js

+ 1 - 1
app/service/stage_detail_att.js

@@ -93,7 +93,7 @@ module.exports = app => {
             if (detailAtt) {
             if (detailAtt) {
                 detailAtt && this._analysisDetailAtt(detailAtt);
                 detailAtt && this._analysisDetailAtt(detailAtt);
                 for (const f of files) {
                 for (const f of files) {
-                    detailAtt.attachment.push(f);
+                    detailAtt.attachment.unshift(f);
                 }
                 }
                 await this.db.update(this.tableName, { id: detailAtt.id, attachment: JSON.stringify(detailAtt.attachment) });
                 await this.db.update(this.tableName, { id: detailAtt.id, attachment: JSON.stringify(detailAtt.attachment) });
                 await this._complete4Output(detailAtt);
                 await this._complete4Output(detailAtt);