doubanMovie-SSR icon indicating copy to clipboard operation
doubanMovie-SSR copied to clipboard

Vue豆瓣电影服务端渲染

Results 8 doubanMovie-SSR issues
Sort by recently updated
recently updated
newest added

电脑配置💻:19款MPB顶配,只有导入这个工程时会卡死,其他工程就不会。那个doubanMovie项目也不会卡死

cnpm i npm run dev 打开localhost8080报接口异常,请问需要配置什么吗?

(node:7028) UnhandledPromiseRejectionWarning: TypeError: Cannot read property 'body' of undefined at handler (C:\Users\hello\Desktop\doubanMovie-SSR-master\node_modules\vue-resource\dist\vue-resource.common.js:1109:53) at C:\Users\hello\Desktop\doubanMovie-SSR-master\node_modules\vue-resource\dist\vue-resource.common.js:1120:41 at at process._tickCallback (internal/process/next_tick.js:189:7) (node:7028) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside...

请问怎么可以改成完全服务器端?

Uncaught (in promise) RangeError: Maximum call stack size exceeded

当前首页默认只在服务端渲染header部分,对于列表信息仍然走的其阿奴单异步渲染;如果列表信息也在服务端渲染的化,目前有问题 action.js部分 ``` getMoving ({commit, state}) { return utils.get('/movie/in_theaters', {city: state.city}).then(res => { commit('MOVING_LIST', {list: res}) commit('MOVING_LOADING', {loading: false}) }).catch(e=>{ console.log(e) }) } ``` 否则异步组件渲染不出来,状态仍为初始状态

整个项目中还是没有看到从后端取数据渲染的过程,后端渲染部分的数据都是写死在页面上的,所以这部分的参考意义就比较弱了。我尝试修改了preFetch,发现可以调用到action中,api的回调中没有日志输出。是因为vue-resource不支持后端联网么?所以整个项目给人的感觉还是比较迷惑。

这个浏览器端的app.js 和 vendor.js还是比较大, 加载时间好像比浏览器端渲染还要慢点