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

vue-scroll-behavior compatibility? #11

Open
FishStudy520 opened this issue Nov 29, 2017 · 4 comments
Open

vue-scroll-behavior compatibility? #11

FishStudy520 opened this issue Nov 29, 2017 · 4 comments
Assignees

Comments

@FishStudy520
Copy link

我在使用vue-scroll-behavior根据题主里面的方法安装:

import vueScrollBehavior from 'vue-scroll-behavior'
Vue.use(vueScrollBehavior, { router: router });

发现我返回时,他依然还是在顶部下来一点点,不会返回到离开的地方;是不是在组件里面还需要定义什么?

我这里的路由里面name设置的是中文,是不是和这个(name)有关系?我这里的name是用来设置title的;

{
path: '/search',
name: "搜索",
component: Search
},

我这弄了个图片:麻烦题主有时间的时候帮忙看下
-1

@jeneser jeneser self-assigned this Nov 29, 2017
@FishStudy520
Copy link
Author

@jeneser 这个问题在电脑上模拟不会 ,只是在手机上返回就不正确了

@jeneser
Copy link
Owner

jeneser commented Dec 1, 2017

你能提供一下手机(android版本号)以及浏览器基本信息吗?该问题可能是某些ES6方法不兼容造成的。
#10 问题类似。可以通过使用其他方法或引入Polyfill来解决。

@jeneser jeneser mentioned this issue Dec 1, 2017
@jeneser jeneser changed the title vue-scroll-behavior使用问题 vue-scroll-behavior compatibility? Dec 1, 2017
@FishStudy520
Copy link
Author

这个是手机信息:
Mozilla/5.0 (Linux; Android 7.0; MHA-AL00 Build/HUAWEIMHA-AL00; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/53.0.2785.49 Mobile MQQBrowser/6.2 TBS/043632 Safari/537.36 MicroMessenger/6.5.22.1160 NetType/WIFI Language/zh_CN

es6应该是兼容安卓 7.0 的,我使用iPhone 6s 、iphone 5s 测试也会出现这种情况,其他手机机型没有试过了。

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

No branches or pull requests

3 participants
@jeneser @FishStudy520 and others