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

DEMO 安卓4.4 vuex需要引入polyfill #2

Closed
Kyncc opened this issue Jun 16, 2017 · 6 comments
Closed

DEMO 安卓4.4 vuex需要引入polyfill #2

Kyncc opened this issue Jun 16, 2017 · 6 comments

Comments

@Kyncc
Copy link

Kyncc commented Jun 16, 2017

image

@Kyncc Kyncc changed the title 安卓4.4 vuex需要polyfill DEMO 安卓4.4 vuex需要引入polyfill Jun 16, 2017
@jaweii
Copy link
Owner

jaweii commented Jun 16, 2017

安卓4.4版本算比较低的了,所以可能是兼容性问题,不知道具体情况也无法确定
可以参考这个试试:http://www.cnblogs.com/weiqinl/p/6794612.html

@weixisheng
Copy link

image

@jaweii
Copy link
Owner

jaweii commented Jun 19, 2017

@weixisheng 看下你的main.js和package.json

@weixisheng
Copy link

main.js

...
import VueRouter from 'vue-router';
import vueg from 'vueg';
import 'vueg/css/transition-min.css'
Vue.use(vueg, VueRouter);

package.json

dependencies:{
"vue": "^2.3.3",
"vue-router": "^2.2.0",
"vueg": "^1.2.45",
"vuex": "^2.1.1",
...
}

@jaweii
Copy link
Owner

jaweii commented Jun 19, 2017

Vue.use(vueg, router) //←注意这一句应该在router实例化(router = new VueRouter({})之后

有可能是这个原因

@weixisheng
Copy link

image

尴尬、把vueg位置放错了。解决了

@jaweii jaweii closed this as completed Jun 19, 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

3 participants