Ver código fonte

在electron环境下,使用和浏览器环境下相同的逻辑,相同和Adapter

dengdx 1 mês atrás
pai
commit
45a1555f28
1 arquivos alterados com 2 adições e 1 exclusões
  1. 2 1
      src/services/print/PrintManager.ts

+ 2 - 1
src/services/print/PrintManager.ts

@@ -89,7 +89,8 @@ export class PrintManager {
   private createAdapter(): IPrintAdapter {
     switch (this.platform) {
       case PlatformType.Electron:
-        return new ElectronPrintAdapter();
+        // return new ElectronPrintAdapter();
+        return new BrowserPrintAdapter();
       
       case PlatformType.Android:
         return new AndroidPrintAdapter();