liwei 1 year ago
parent
commit
184fe8f067
2 changed files with 5 additions and 1 deletions
  1. 2 1
      src/comm/controllers/deviceCtrl.ts
  2. 3 0
      src/pages/frame3d/main.ts

+ 2 - 1
src/comm/controllers/deviceCtrl.ts

@@ -94,7 +94,7 @@ export class DeviceController extends Controller {
       appGuid: "",
     };
     this.appDataDir = await this.GetAppDataDir();
-    const httpServer = await this.StartHttpServer(`${this.appDataDir}/screen/`);
+    const httpServer = await this.StartHttpServer(`${this.appDataDir}/screen`);
     this.httpServer = httpServer.substring(0, httpServer.length - 1);
     console.log("current app profile=>", this.profile);
   }
@@ -256,6 +256,7 @@ export class DeviceController extends Controller {
 
   //开启projects 的httpserver
   StartHttpServer(prjFile: string): Promise<string> {
+    console.log("start server ", prjFile);
     const sid = Date.now();
     return new Promise((r) => {
       const ipc = this.ipc;

+ 3 - 0
src/pages/frame3d/main.ts

@@ -3,4 +3,7 @@ import { initQueditor } from "@queenjs-modules/queditor";
 import router from "./routes";
 import "./style.less";
 import { initList } from "@/modules/list";
+
+//@ts-ignore
+window.noForceHttps = true;
 startApp(router, [initQueditor, initList]);