fix: 修复beforRender中loading动画未正确挂载的问题

This commit is contained in:
万纯 2021-03-24 15:25:51 +08:00
parent d32006e61a
commit d5c267f5d1

View File

@ -74,7 +74,7 @@ const beforeRender = async () => {
let initialState = {};
if (typeof beforeRenderConfig.action === "function") {
const app = createApp(beforeRenderConfig.loading);
app.mount("#app");
app.mount('{{{ rootElement }}}');
try {
initialState = await beforeRenderConfig.action();
} catch(e){