Explorar el Código

ensure pinia store execute order

Michael Wang hace 3 años
padre
commit
d4dd3dc938
Se han modificado 1 ficheros con 3 adiciones y 1 borrados
  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);
 }