ccjgmwz 3 лет назад
Родитель
Сommit
661b8254d4
1 измененных файлов с 4 добавлено и 4 удалено
  1. 4 4
      public/static/weightCheck.html

+ 4 - 4
public/static/weightCheck.html

@@ -599,10 +599,10 @@
         // this.tableData = JSON.parse(sessionStorage.getItem("record_print"))
 
         document.title = "粮食检斤单"
-        // window.print()
-        // window.onafterprint = function(event) {
-        //   window.history.back(-1)
-        // };
+        window.print()
+        window.onafterprint = function(event) {
+          window.history.back(-1)
+        };
       },
       watch: {}
     })