提交 75d1c7e9 编写于 作者: fxy060608's avatar fxy060608

fix(ssr): rename identifier

上级 94fcecd4
......@@ -49,7 +49,7 @@ function createLegacyApp(code: string) {
}
function createSSRClientApp(code: string) {
return `import { UNI_SSR, UNI_SSR_STORE } from '@dcloudio/uni-shared';const { app as __app, store as __store } = createApp();__app.use(plugin);__store && window[UNI_SSR] && window[UNI_SSR][UNI_SSR_STORE] && __store.replaceState(window[UNI_SSR][UNI_SSR_STORE]);__app.router.isReady().then(() => __app.mount("#app"));${code}`
return `import { UNI_SSR, UNI_SSR_STORE } from '@dcloudio/uni-shared';const { app: __app, store: __store } = createApp();__app.use(plugin);__store && window[UNI_SSR] && window[UNI_SSR][UNI_SSR_STORE] && __store.replaceState(window[UNI_SSR][UNI_SSR_STORE]);__app.router.isReady().then(() => __app.mount("#app"));${code}`
}
function createSSRServerApp(code: string) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册