Explorar o código

fix other machine build

Michael Wang %!s(int64=4) %!d(string=hai) anos
pai
achega
16b6d19a77
Modificáronse 1 ficheiros con 7 adicións e 4 borrados
  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");
 }