|
@@ -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");
|
|
|
}
|