Pārlūkot izejas kodu

fix other machine build

Michael Wang 4 gadi atpakaļ
vecāks
revīzija
16b6d19a77
1 mainītis faili ar 7 papildinājumiem un 4 dzēšanām
  1. 7 4
      src/main.ts

+ 7 - 4
src/main.ts

@@ -1,4 +1,3 @@
-import { initLogin } from "./devLogin";
 import "./styles/global.css";
 import { createApp } from "vue";
 import App from "./App.vue";
@@ -20,9 +19,13 @@ app.component("qm-button", QmButton);
 app.component("qm-dialog", QmDialog);
 
 if (import.meta.env.DEV) {
-  initLogin().then(() => {
-    app.mount("#app");
-  });
+  import("./devLogin")
+    .then((m) => {
+      return m.initLogin();
+    })
+    .then(() => {
+      app.mount("#app");
+    });
 } else {
   app.mount("#app");
 }