提交 41b504cd 编写于 作者: fxy060608's avatar fxy060608

fix(ssr): rename identifier

上级 70888bc5
......@@ -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, 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 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}`
}
function createSSRServerApp(code: string) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册