Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

首页服务端渲染直出错误(懒得pl) #8

Open
royalrover opened this issue Oct 19, 2017 · 1 comment
Open

首页服务端渲染直出错误(懒得pl) #8

royalrover opened this issue Oct 19, 2017 · 1 comment

Comments

@royalrover
Copy link

当前首页默认只在服务端渲染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)
    })
  }

否则异步组件渲染不出来,状态仍为初始状态

@muwoo
Copy link
Owner

muwoo commented Oct 25, 2017

好的,这几天没有看,我会及时处理的

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants