Sfoglia il codice sorgente

ensure pinia store execute order

Michael Wang 3 anni fa
parent
commit
d4dd3dc938
1 ha cambiato i file con 3 aggiunte e 1 eliminazioni
  1. 3 1
      src/main.ts

+ 3 - 1
src/main.ts

@@ -39,5 +39,7 @@ if (import.meta.env.DEV) {
       app.mount("#app");
     });
 } else {
-  app.mount("#app");
+  setTimeout(() => {
+    app.mount("#app");
+  }, 0);
 }