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

Datetime 初始化时 Picker 报错 #1180

Closed
gouflv opened this issue Mar 30, 2017 · 0 comments
Closed

Datetime 初始化时 Picker 报错 #1180

gouflv opened this issue Mar 30, 2017 · 0 comments

Comments

@gouflv
Copy link

gouflv commented Mar 30, 2017

版本2.1.1-rc.13
在页面路由到有 Datetime 组件的页面, 并在 mounted 中向他绑定的 v-model 赋值时, 组件内部报空值错误

Error in callback for watcher "value":  (found in <Datetime> at... vux/src/components/datetime/index.vue
Cannot read property 'destroy' of undefined

定位到具体错误代码在193行, this.picker.destroy() 的this.picker未定义,
可能跟组件的延迟 render 有关吧

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

2 participants