mxx 3 年之前
父節點
當前提交
e4f919b99e
共有 1 個文件被更改,包括 4 次插入4 次删除
  1. 4 4
      public/static/inspection.html

+ 4 - 4
public/static/inspection.html

@@ -324,10 +324,10 @@
         console.log(_data)
         console.log(_data)
         this.tableData = JSON.parse(_data)
         this.tableData = JSON.parse(_data)
         console.log(this.tableData)
         console.log(this.tableData)
-        // window.print()
-        // window.onafterprint = function(event) {
-        //   window.history.back(-1)
-        // };
+        window.print()
+        window.onafterprint = function(event) {
+          window.history.back(-1)
+        };
       },
       },
       watch: {}
       watch: {}
     })
     })