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

使用ssr nuxtjs时,用cube-scroll组件,options参数pullDownRefresh为true的时候,报错window is not defined #161

Closed
psychokiller666 opened this issue Apr 17, 2018 · 1 comment
Labels

Comments

@psychokiller666
Copy link

Version

1.7.3

Reproduction link

https://github.com/psychokiller666/heishi_nuxt/blob/master/pages/index.vue

Steps to reproduce

git clone https://github.com/psychokiller666/heishi_nuxt.git
yarn or npm install
yarn dev or npm run dev

What is expected?

pullDownRefresh 应该是使用了window这个方法。没有做ssr处理

What is actually happening?

nuxtjs 报错提示window is not defined

Dependencies Version

vue: 2.5.17-beta.0
better-scroll: 1.9.0

@psychokiller666
Copy link
Author

另外,针对Scroll组件,横向滚动的时候。也可以直接设置.cube-scroll-content的宽度就好了。

比如:


谢谢 winner winner chicken dinner!

@dolymood dolymood added the bug label Apr 17, 2018
hu0950 pushed a commit that referenced this issue Nov 1, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants